[Xfce4-commits] <xfce4-terminal:master> Just show and hide with status icon.

Nick Schermer noreply at xfce.org
Sat Dec 29 22:44:07 CET 2012


Updating branch refs/heads/master
         to cd7e50bcbc2dbad260ed8edbace26ce473a1777d (commit)
       from ebecd264cb0a6bd5377a9bea12c7c66a00d52cfc (commit)

commit cd7e50bcbc2dbad260ed8edbace26ce473a1777d
Author: Nick Schermer <nick at xfce.org>
Date:   Sat Dec 29 16:01:00 2012 +0100

    Just show and hide with status icon.

 terminal/terminal-window-dropdown.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/terminal/terminal-window-dropdown.c b/terminal/terminal-window-dropdown.c
index e5e8db1..5f8df4d 100644
--- a/terminal/terminal-window-dropdown.c
+++ b/terminal/terminal-window-dropdown.c
@@ -409,7 +409,11 @@ terminal_window_dropdown_status_icon_press_event (GtkStatusIcon          *status
                                                   GdkEventButton         *event,
                                                   TerminalWindowDropdown *dropdown)
 {
-  terminal_window_dropdown_toggle_real (dropdown, event->time);
+  if (gtk_widget_get_visible (GTK_WIDGET (dropdown)))
+    gtk_widget_hide (GTK_WIDGET (dropdown));
+  else
+    terminal_window_dropdown_position (dropdown, event->time);
+
   return FALSE;
 }
 


More information about the Xfce4-commits mailing list