[pdfmod] Set the process name



commit d0674a08809f8b81ffeb375b9c703a6c2e7da076
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Thu Aug 6 12:25:53 2009 -0700

    Set the process name

 lib/Hyena.dll               |  Bin 234496 -> 235008 bytes
 src/PdfMod/PdfMod/PdfMod.cs |    7 +++++--
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/lib/Hyena.dll b/lib/Hyena.dll
index 80d4f3e..601a44f 100755
Binary files a/lib/Hyena.dll and b/lib/Hyena.dll differ
diff --git a/src/PdfMod/PdfMod/PdfMod.cs b/src/PdfMod/PdfMod/PdfMod.cs
index 7f71ed3..48d99fc 100644
--- a/src/PdfMod/PdfMod/PdfMod.cs
+++ b/src/PdfMod/PdfMod/PdfMod.cs
@@ -19,6 +19,11 @@ namespace PdfMod
 
         public static void Main (string[] args)
         {
+            ApplicationContext.TrySetProcessName ("pdfmod");
+
+            Gtk.Application.Init (null, ref args);
+            Gdk.Global.ProgramClass = "pdfmod";
+
             ThreadAssist.InitializeMainThread ();
             ThreadAssist.ProxyToMainHandler = RunIdle;
 
@@ -26,7 +31,6 @@ namespace PdfMod
             Hyena.Log.Notify += OnLogNotify;
             Hyena.Log.DebugFormat ("Starting PdfMod");
 
-            Gtk.Application.Init ();
             InitCatalog ("/usr/local/share/locale/", "/usr/share/locale/");
 
             try {
@@ -285,7 +289,6 @@ namespace PdfMod
 
         private static void OnLogNotify (LogNotifyArgs args)
         {
-            Gtk.Window window = null;
             Gtk.MessageType mtype;
             var entry = args.Entry;
 



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