Patch: Use icon to hide main window

Was going to open a bug and attach this patch to it, but b.g.o seems a
bit ill at the moment.

Attached is a patch against CVS that makes beagle-search, when in --icon
mode, hide the main window when the icon is clicked if the window is not
currently hidden.  (i.e. You click the icon to open the main window and
then click it again to hide it - the same behaviour as best and most
other apps that use the notification area)

James Ogley james usr-local-bin org
Packages for SUSE:
Make Poverty History:
diff -ruN beagle.orig/search/Search.cs beagle/search/Search.cs
--- beagle.orig/search/Search.cs	2006-01-19 00:16:23.000000000 +0000
+++ beagle/search/Search.cs	2006-01-19 00:24:48.000000000 +0000
@@ -364,6 +364,9 @@
 				ShowAll ();
 				entry.GrabFocus ();
+			else {
+				base.Hide ();
+			}
 		private void OnTraySearch (string query)

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