[Xfce4-commits] <xfce4-terminal:master> Fix crash when showing toolbar 2nd time (bug #9696).

Nick Schermer noreply at xfce.org
Fri Dec 28 14:16:03 CET 2012


Updating branch refs/heads/master
         to 09c901193ba62d88039f86ba582a5e54a39a1d0e (commit)
       from f2d08699c2d22501dfbb65cc21e67573c5a3ba15 (commit)

commit 09c901193ba62d88039f86ba582a5e54a39a1d0e
Author: Nick Schermer <nick at xfce.org>
Date:   Fri Dec 28 14:14:46 2012 +0100

    Fix crash when showing toolbar 2nd time (bug #9696).

 terminal/terminal-window.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index e9f954a..33610ba 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -1498,8 +1498,7 @@ terminal_window_action_show_toolbar (GtkToggleAction *action,
     }
   else if (window->toolbar != NULL)
     {
-      gtk_widget_destroy (window->toolbar);
-      window->toolbar = NULL;
+      gtk_widget_hide (window->toolbar);
     }
 
   terminal_window_size_pop (window);


More information about the Xfce4-commits mailing list