aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-03-20 09:36:41 +0000
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-03-20 09:36:41 +0000
commitb14ba3324a7f80ff4fcc5025b576d33544178f74 (patch)
tree4011f7b4f288c0051110165f3945b3c4aa4f23ea
parentd4b169715cb62530aa80bcaff8c434599241d93e (diff)
downloadlibayatana-appindicator-b14ba3324a7f80ff4fcc5025b576d33544178f74.tar.gz
libayatana-appindicator-b14ba3324a7f80ff4fcc5025b576d33544178f74.tar.bz2
libayatana-appindicator-b14ba3324a7f80ff4fcc5025b576d33544178f74.zip
src/app-indicator.c: Type cast assignments from g_object_ref().
-rw-r--r--src/app-indicator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/app-indicator.c b/src/app-indicator.c
index 4df3d3f..a500a73 100644
--- a/src/app-indicator.c
+++ b/src/app-indicator.c
@@ -254,7 +254,7 @@ name_appeared_handler (GDBusConnection *connection,
NOTIFICATION_WATCHER_DBUS_IFACE,
NULL,
(GAsyncReadyCallback) watcher_ready_cb,
- g_object_ref (self));
+ (AppIndicator*)g_object_ref (self));
}
static void
@@ -1383,7 +1383,7 @@ check_connect (AppIndicator *self)
G_DBUS_CALL_FLAGS_NONE,
-1, NULL,
(GAsyncReadyCallback) register_service_cb,
- g_object_ref (self));
+ (AppIndicator*)g_object_ref (self));
}
/* Responce from the DBus command to register a service
@@ -2289,7 +2289,7 @@ app_indicator_set_secondary_activate_target (AppIndicator *self, GtkWidget *menu
g_return_if_fail (GTK_IS_WIDGET (menuitem));
- priv->sec_activate_target = g_object_ref(G_OBJECT(menuitem));
+ priv->sec_activate_target = (GtkWidget*)g_object_ref(G_OBJECT(menuitem));
priv->sec_activate_enabled = widget_is_menu_child(self, menuitem);
g_signal_connect(menuitem, "parent-set", G_CALLBACK(sec_activate_target_parent_changed), self);
}