[Xfce4-commits] <midori:master> Don't destroy inspector window that will be re-used

Christian Dywan noreply at xfce.org
Tue Apr 19 23:22:01 CEST 2011


Updating branch refs/heads/master
         to a9a220f96cdb95a5eb2ee23eed3a42737eb52a07 (commit)
       from a2fc8f405c7aeb97734e7d6ad873790bfdc38ecd (commit)

commit a9a220f96cdb95a5eb2ee23eed3a42737eb52a07
Author: André Stösel <andre at stoesel.de>
Date:   Tue Apr 19 23:21:31 2011 +0200

    Don't destroy inspector window that will be re-used

 midori/midori-browser.c |    2 ++
 midori/midori-view.c    |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index c557179..8958cbc 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -1262,9 +1262,11 @@ midori_view_detach_inspector_cb (GtkWidget*     view,
                                  MidoriBrowser* browser)
 {
     GtkWidget* scrolled = gtk_widget_get_parent (GTK_WIDGET (inspector_view));
+    GtkWidget* paned = gtk_widget_get_parent (scrolled);
     browser->inspector_view = gtk_viewport_new (NULL, NULL);
     gtk_container_remove (GTK_CONTAINER (scrolled), GTK_WIDGET (inspector_view));
     gtk_container_add (GTK_CONTAINER (scrolled), browser->inspector_view);
+    gtk_widget_hide (paned);
 }
 
 static void
diff --git a/midori/midori-view.c b/midori/midori-view.c
index 6de6f74..7537135 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -3736,7 +3736,7 @@ midori_view_web_inspector_close_window_cb (gpointer    inspector,
     GtkWidget* scrolled = gtk_widget_get_parent (GTK_WIDGET (inspector_view));
     if (!scrolled)
         return FALSE;
-    gtk_widget_destroy (gtk_widget_get_parent (scrolled));
+    gtk_widget_hide (gtk_widget_get_parent (scrolled));
     return TRUE;
 }
 



More information about the Xfce4-commits mailing list