[anjuta] Fix a crash with some version of Gtk due to my last commit



commit 5db783ab5912612a619aca7c078e681cf15dcc16
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Wed May 29 21:40:46 2013 +0200

    Fix a crash with some version of Gtk due to my last commit

 src/anjuta-window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/anjuta-window.c b/src/anjuta-window.c
index 44fb037..f4a7fca 100644
--- a/src/anjuta-window.c
+++ b/src/anjuta-window.c
@@ -1335,10 +1335,10 @@ anjuta_window_remove_widget (AnjutaShell *shell, GtkWidget *widget,
 
        /* Remove the widget from container */
        g_object_ref (widget);
-       gdl_dock_item_unbind (GDL_DOCK_ITEM(dock_item));
        /* It should call on_widget_remove() and clean up should happen */
        gtk_container_remove (GTK_CONTAINER (dock_item), widget);
        g_object_unref (widget);
+       gdl_dock_item_unbind (GDL_DOCK_ITEM(dock_item));
 }
 
 static void


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