From ea9e8221b19f1145aa48a9c4f261ca7bd5057e64 Mon Sep 17 00:00:00 2001 From: Carlos Soriano Date: Fri, 26 Feb 2016 11:54:53 +0100 Subject: [PATCH] gtkplacessidebar: use gpointers in trash row It's the right casting. Forgot to push it with the previous patch. --- gtk/gtkplacessidebar.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index 6160504759..4b330e8fb8 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -994,7 +994,8 @@ update_places (GtkPlacesSidebar *sidebar) _("Trash"), icon, mount_uri, NULL, NULL, NULL, 0, _("Open the trash")); - g_object_add_weak_pointer (G_OBJECT (sidebar->trash_row), &sidebar->trash_row); + g_object_add_weak_pointer (G_OBJECT (sidebar->trash_row), + (gpointer *) &sidebar->trash_row); g_object_unref (icon); } @@ -4044,7 +4045,8 @@ gtk_places_sidebar_dispose (GObject *object) if (sidebar->trash_row) { - g_object_remove_weak_pointer (G_OBJECT (sidebar->trash_row), &sidebar->trash_row); + g_object_remove_weak_pointer (G_OBJECT (sidebar->trash_row), + (gpointer *) &sidebar->trash_row); sidebar->trash_row = NULL; }