@@ -31,17 +31,17 @@ typedef struct
32static void
32static void
33bus_acquired (GDBusConnection *connection,
33bus_acquired (GDBusConnection *connection,
34− const gchar *name,
34+ const gchar *name,
35− gpointer user_data)
35+ gpointer user_data)
37 (void) name;
37 (void) name;
38 IndicatorTestService *indicator = user_data;
38 IndicatorTestService *indicator = user_data;
39 GError *error = NULL;
39 GError *error = NULL;
41 indicator->actions_export_id = g_dbus_connection_export_action_group (connection,
41 indicator->actions_export_id = g_dbus_connection_export_action_group (connection,
42− "/com/canonical/indicator/mock",
42+ "/com/canonical/indicator/mock",
43− G_ACTION_GROUP (indicator->actions),
43+ G_ACTION_GROUP (indicator->actions),
45 if (indicator->actions_export_id == 0)
45 if (indicator->actions_export_id == 0)
47 g_warning ("cannot export action group: %s", error->message);
47 g_warning ("cannot export action group: %s", error->message);
@@ -50,9 +50,9 @@ bus_acquired (GDBusConnection *connection,
52 indicator->menu_export_id = g_dbus_connection_export_menu_model (connection,
52 indicator->menu_export_id = g_dbus_connection_export_menu_model (connection,
53− "/com/canonical/indicator/mock/desktop",
53+ "/com/canonical/indicator/mock/desktop",
54− G_MENU_MODEL (indicator->menu),
54+ G_MENU_MODEL (indicator->menu),
56 if (indicator->menu_export_id == 0)
56 if (indicator->menu_export_id == 0)
58 g_warning ("cannot export menu: %s", error->message);
58 g_warning ("cannot export menu: %s", error->message);
@@ -63,8 +63,8 @@ bus_acquired (GDBusConnection *connection,
64static void
64static void
65name_lost (GDBusConnection *connection,
65name_lost (GDBusConnection *connection,
66− const gchar *name,
66+ const gchar *name,
67− gpointer user_data)
67+ gpointer user_data)
69 (void) name;
69 (void) name;
70 IndicatorTestService *indicator = user_data;
70 IndicatorTestService *indicator = user_data;
@@ -78,8 +78,8 @@ name_lost (GDBusConnection *connection,
79static void
79static void
80activate_show (GSimpleAction *action,
80activate_show (GSimpleAction *action,
81− GVariant *parameter,
81+ GVariant *parameter,
82− gpointer user_data)
82+ gpointer user_data)
84 (void) action;
84 (void) action;
85 (void) parameter;
85 (void) parameter;
@@ -105,8 +105,8 @@ actual_switch (gpointer user_data)
106static void
106static void
107activate_switch (GSimpleAction *action,
107activate_switch (GSimpleAction *action,
108− GVariant *parameter,
108+ GVariant *parameter,
109− gpointer user_data)
109+ gpointer user_data)
111 (void) action;
111 (void) action;
112 (void) parameter;
112 (void) parameter;
@@ -240,13 +240,13 @@ main (int argc, char **argv)
240 g_menu_append_item (indicator.menu, item);
240 g_menu_append_item (indicator.menu, item);
242 g_bus_own_name (G_BUS_TYPE_SESSION,
242 g_bus_own_name (G_BUS_TYPE_SESSION,
243− "com.canonical.indicator.mock",
243+ "com.canonical.indicator.mock",
244− G_BUS_NAME_OWNER_FLAGS_NONE,
244+ G_BUS_NAME_OWNER_FLAGS_NONE,
245− bus_acquired,
245+ bus_acquired,
247− name_lost,
247+ name_lost,
248− &indicator,
248+ &indicator,
251 loop = g_main_loop_new (NULL, FALSE);
251 loop = g_main_loop_new (NULL, FALSE);
252 g_main_loop_run (loop);
252 g_main_loop_run (loop);
@@ -258,4 +258,4 @@ main (int argc, char **argv)
258 g_object_unref (loop);
258 g_object_unref (loop);
260 return 1;
260 return 1;