seahorse r2212 - in seahorse-plugins/trunk: . agent



Author: sadam
Date: Sat May 17 17:51:54 2008
New Revision: 2212
URL: http://svn.gnome.org/viewvc/seahorse?rev=2212&view=rev

Log:
2008-05-17  Adam Schreiber  <sadam clemson edu>

    * agent/seahorse-agent-status.c: Close window if open when tray icon 
clicked
    Patch from Josselin Mouette.  Fixes bug #532567


Modified:
   seahorse-plugins/trunk/ChangeLog
   seahorse-plugins/trunk/agent/seahorse-agent-status.c

Modified: seahorse-plugins/trunk/agent/seahorse-agent-status.c
==============================================================================
--- seahorse-plugins/trunk/agent/seahorse-agent-status.c	(original)
+++ seahorse-plugins/trunk/agent/seahorse-agent-status.c	Sat May 17 17:51:54 2008
@@ -227,7 +227,10 @@
 static void
 tray_activate (GtkStatusIcon *icon, void *data)
 {
-    window_show ();
+    if (g_window)
+        window_destroy ();
+    else
+        window_show ();
 }
 
 /* Called when icon clicked */



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