[gimp] app: When paned widget is removed, clear drag handler



commit ef6bd20c3b97112881b2b777e289635e58cb73b4
Author: Martin Nordholts <martinn src gnome org>
Date:   Sat Dec 12 16:36:50 2009 +0100

    app: When paned widget is removed, clear drag handler
    
    When paned widget is removed, clear drag handler. Not clearing was a
    copy and paste mistake.

 app/widgets/gimppanedbox.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimppanedbox.c b/app/widgets/gimppanedbox.c
index ef117b2..fe7f56a 100644
--- a/app/widgets/gimppanedbox.c
+++ b/app/widgets/gimppanedbox.c
@@ -531,7 +531,7 @@ gimp_paned_box_remove_widget (GimpPanedBox *paned_box,
   paned_box->p->widgets = g_list_remove (paned_box->p->widgets, widget);
 
   /* Reset the drag events hook */
-  gimp_paned_box_set_widget_drag_handler (widget, paned_box);
+  gimp_paned_box_set_widget_drag_handler (widget, NULL);
 
   /* Remove from widget hierarchy */
   if (old_length == 1)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]