From 8b9f0402b02a34d2e987936f134a20dc3effd34b Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Tue, 6 Sep 2011 18:26:54 -0400 Subject: [PATCH] iconview: fix a typo while removing the a11y adjustment weak ref The code sets old_adj_ptr to the location containing the old weak ref, but then wants to remove a weak ref from &view->old_hadj, causing warnings when disposing the widget. --- gtk/gtkiconview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c index a252e0f745..8b4a184473 100644 --- a/gtk/gtkiconview.c +++ b/gtk/gtkiconview.c @@ -8089,7 +8089,7 @@ gtk_icon_view_accessible_set_adjustment (AtkObject *accessible, if (*old_adj_ptr) { g_object_remove_weak_pointer (G_OBJECT (*old_adj_ptr), - (gpointer *)&view->old_hadj); + (gpointer *)old_adj_ptr); g_signal_handlers_disconnect_by_func (*old_adj_ptr, gtk_icon_view_accessible_adjustment_changed, accessible);