blam r670 - in trunk: . src
- From: cmartin svn gnome org
- To: svn-commits-list gnome org
- Subject: blam r670 - in trunk: . src
- Date: Tue, 6 Jan 2009 09:54:22 +0000 (UTC)
Author: cmartin
Date: Tue Jan 6 09:54:22 2009
New Revision: 670
URL: http://svn.gnome.org/viewvc/blam?rev=670&view=rev
Log:
Hide window upon tray-click.
Modified:
trunk/ChangeLog
trunk/src/Application.cs
Modified: trunk/src/Application.cs
==============================================================================
--- trunk/src/Application.cs (original)
+++ trunk/src/Application.cs Tue Jan 6 09:54:22 2009
@@ -765,7 +765,12 @@
private void TrayIconButtonPressCb (object o, EventArgs args)
{
- mainWindow.Present ();
+ /* If we're hidden, show and if we're in fg, hide. */
+ if(mainWindow.HasToplevelFocus){
+ mainWindow.Hide();
+ } else {
+ mainWindow.Present();
+ }
}
private void RestoreWindowState()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]