tomboy r2083 - in trunk: . Tomboy



Author: sharm
Date: Fri Aug 15 14:21:49 2008
New Revision: 2083
URL: http://svn.gnome.org/viewvc/tomboy?rev=2083&view=rev

Log:
* Tomboy/Tomboy.cs: Use Gtk.StatusIcon.GetGeometry method to get a
  Gdk.Screen, as the Gtk.StatusIcon.Screen property is only available
  in gtk-sharp >= 2.12.  Should fix bug #547900.

Modified:
   trunk/ChangeLog
   trunk/Tomboy/Tomboy.cs

Modified: trunk/Tomboy/Tomboy.cs
==============================================================================
--- trunk/Tomboy/Tomboy.cs	(original)
+++ trunk/Tomboy/Tomboy.cs	Fri Aug 15 14:21:49 2008
@@ -240,8 +240,14 @@
 
 		static void OnShowHelpAction (object sender, EventArgs args)
 		{
+			Gdk.Screen screen = null;
+			if (tray_icon != null) {
+				Gdk.Rectangle area;
+				Gtk.Orientation orientation;
+				tray_icon.GetGeometry (out screen, out area, out orientation);
+			}
 			GuiUtils.ShowHelp("tomboy.xml", null,
-			                  tray_icon == null ? null : tray_icon.Screen,
+			                  screen,
 			                  null);
 
 		}



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