[tomboy] Don't use Gnome.Program unless panel applet enabled



commit 48c4e7b2dd577839ed040aada114efa331baa431
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date:   Sun Jun 20 07:10:57 2010 -0700

    Don't use Gnome.Program unless panel applet enabled

 Tomboy/GnomeApplication.cs |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/Tomboy/GnomeApplication.cs b/Tomboy/GnomeApplication.cs
index 44dae3b..756b6b3 100644
--- a/Tomboy/GnomeApplication.cs
+++ b/Tomboy/GnomeApplication.cs
@@ -16,7 +16,9 @@ namespace Tomboy
 {
 	public class GnomeApplication : INativeApplication
 	{
+#if PANEL_APPLET
 		private Gnome.Program program;
+#endif
 		private static string confDir;
 		private static string dataDir;
 		private static string cacheDir;
@@ -70,10 +72,12 @@ namespace Tomboy
 			}
 
 			Gtk.Application.Init ();
+#if PANEL_APPLET
 			program = new Gnome.Program (display_name,
 			                             Defines.VERSION,
 			                             Gnome.Modules.UI,
 			                             args);
+#endif
 		}
 
 		public void RegisterSessionManagerRestart (string executable_path,
@@ -102,7 +106,11 @@ namespace Tomboy
 
 		public void StartMainLoop ()
 		{
+#if PANEL_APPLET
 			program.Run ();
+#else
+			Gtk.Application.Run ();
+#endif
 		}
 
 		[DllImport("libc")]



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