aboutsummaryrefslogtreecommitdiff
path: root/src/sound-service-dbus.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-01-11 03:57:41 -0600
committerConor Curran <conor.curran@canonical.com>2011-01-11 03:57:41 -0600
commit590a3ad4a7bf384a7023365c85e127a42cd4b5b2 (patch)
treea77a7469dcabf847ed8a6e2d68b880978270d4f0 /src/sound-service-dbus.c
parent9452f0262c608fc1ee6509078b3538f68b5f0993 (diff)
downloadayatana-indicator-sound-590a3ad4a7bf384a7023365c85e127a42cd4b5b2.tar.gz
ayatana-indicator-sound-590a3ad4a7bf384a7023365c85e127a42cd4b5b2.tar.bz2
ayatana-indicator-sound-590a3ad4a7bf384a7023365c85e127a42cd4b5b2.zip
more warnings sorted
Diffstat (limited to 'src/sound-service-dbus.c')
-rw-r--r--src/sound-service-dbus.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/sound-service-dbus.c b/src/sound-service-dbus.c
index 8e0f31a..223c1d9 100644
--- a/src/sound-service-dbus.c
+++ b/src/sound-service-dbus.c
@@ -40,6 +40,12 @@ static void bus_method_call (GDBusConnection * connection,
GDBusMethodInvocation * invocation,
gpointer user_data);
+static GDBusInterfaceVTable interface_table = {
+ method_call: bus_method_call,
+ get_property: NULL, /* No properties */
+ set_property: NULL /* No properties */
+};
+
typedef struct _SoundServiceDbusPrivate SoundServiceDbusPrivate;
@@ -85,14 +91,14 @@ sound_service_dbus_class_init (SoundServiceDbusClass *klass)
}
}
- if (interface_info == NULL) {
- interface_info = g_dbus_node_info_lookup_interface (node_info,
+ if (interface_info == NULL) {
+ interface_info = g_dbus_node_info_lookup_interface (node_info,
INDICATOR_SOUND_SERVICE_DBUS_INTERFACE);
- if (interface_info == NULL) {
- g_error("Unable to find interface '" INDICATOR_SOUND_SERVICE_DBUS_INTERFACE "'");
- }
- }
+ if (interface_info == NULL) {
+ g_error("Unable to find interface '" INDICATOR_SOUND_SERVICE_DBUS_INTERFACE "'");
+ }
+ }
}
static void
@@ -117,7 +123,7 @@ sound_service_dbus_init (SoundServiceDbus *self)
g_dbus_connection_register_object (priv->connection,
INDICATOR_SOUND_SERVICE_DBUS_OBJECT,
interface_info,
- NULL,
+ &interface_table,
NULL,
NULL,
&error);