banshee r4064 - in trunk/banshee: . src/Core/Banshee.Core src/Core/Banshee.Core/Banshee.Base src/Core/Banshee.ThickClient/Banshee.Gui



Author: abock
Date: Mon Jun  2 13:59:42 2008
New Revision: 4064
URL: http://svn.gnome.org/viewvc/banshee?rev=4064&view=rev

Log:
2008-06-02  Aaron Bockover  <abock gnome org>

    * src/Core/Banshee.Core/Banshee.Base/PlatformHacks.cs: Removed the
    gdk_set_program_class call since it's GUI code and not even really a
    platform hack

    * src/Core/Banshee.Core/Makefile.am:
    * src/Core/Banshee.Core/Banshee.Core.dll.config: Removed .config, not needed

    * src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs: Replaced
    the PlatformHacks.GdkSetProgramClass call with the proper
    Gdk.Global.ProgramClass property setter



Removed:
   trunk/banshee/src/Core/Banshee.Core/Banshee.Core.dll.config
Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.Core/Banshee.Base/PlatformHacks.cs
   trunk/banshee/src/Core/Banshee.Core/Makefile.am
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs

Modified: trunk/banshee/src/Core/Banshee.Core/Banshee.Base/PlatformHacks.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Core/Banshee.Base/PlatformHacks.cs	(original)
+++ trunk/banshee/src/Core/Banshee.Core/Banshee.Base/PlatformHacks.cs	Mon Jun  2 13:59:42 2008
@@ -72,20 +72,6 @@
             } catch {
             }
         }
-                
-        [DllImport ("libgtk-win32-2.0-0.dll")]
-        private static extern void gdk_set_program_class (string program_class);
-        
-        public static void GdkSetProgramClass (string programClass)
-        {
-            // Force the GDK program class to avoid a bug in some WMs and 
-            // task list versions in GNOME
-            
-            try {
-                gdk_set_program_class (programClass);
-            } catch {
-            }
-        }
         
         [DllImport ("libc")] // Linux
         private static extern int prctl (int option, byte [] arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5);

Modified: trunk/banshee/src/Core/Banshee.Core/Makefile.am
==============================================================================
--- trunk/banshee/src/Core/Banshee.Core/Makefile.am	(original)
+++ trunk/banshee/src/Core/Banshee.Core/Makefile.am	Mon Jun  2 13:59:42 2008
@@ -70,6 +70,3 @@
 
 include $(top_srcdir)/build/build.mk
 
-module_SCRIPTS += Banshee.Core.dll.config
-EXTRA_DIST += Banshee.Core.dll.config
-

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs	Mon Jun  2 13:59:42 2008
@@ -80,7 +80,7 @@
 
             ThreadAssist.InitializeMainThread ();
             
-            PlatformHacks.GdkSetProgramClass (Application.InternalName);
+            Gdk.Global.ProgramClass = Application.InternalName;
 
             if (ApplicationContext.Debugging) {
                 GLib.Log.SetLogHandler ("Gtk", GLib.LogLevelFlags.Critical, GLib.Log.PrintTraceLogFunction);



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