[banshee] Execute the 'gtk-menu-popup-delay = 225' hack whenever StyleSet (BGO #524706)



commit dc1413e9d3de43d1cac08d6069d48b1a7fbc13d8
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Thu Apr 30 13:36:49 2009 -0500

    Execute the 'gtk-menu-popup-delay = 225' hack whenever StyleSet (BGO #524706)
---
 .../Banshee.Gui/GtkBaseClient.cs                   |    4 ----
 .../Banshee.Gui/GtkElementsService.cs              |    7 ++++++-
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs b/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs
index af11aa3..da00ea5 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs
@@ -55,10 +55,6 @@ namespace Banshee.Gui
                 Gtk.Rc.AddDefaultFile (user_gtkrc);
             } 
             
-            // Ugly hack to avoid stupid themes that set this to 0, causing a huge
-            // bug when constructing the "add to playlist" popup menu (BGO #524706)
-            Gtk.Rc.ParseString ("gtk-menu-popup-delay = 225");
-
             // Boot the client
             Banshee.Gui.GtkBaseClient.Startup<T> ();
         }
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/GtkElementsService.cs b/src/Core/Banshee.ThickClient/Banshee.Gui/GtkElementsService.cs
index 1d942fc..855a3f4 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/GtkElementsService.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/GtkElementsService.cs
@@ -56,6 +56,11 @@ namespace Banshee.Gui
         private void OnStyleSet (object o, StyleSetArgs args)
         {
             SourceInvalidateIconPixbuf (ServiceManager.SourceManager.Sources);
+
+            // Ugly hack to avoid stupid themes that set this to 0, causing a huge
+            // bug when constructing the "add to playlist" popup menu (BGO #524706)
+            Gtk.Rc.ParseString ("gtk-menu-popup-delay = 225");
+
             OnThemeChanged ();
         }
         
@@ -123,4 +128,4 @@ namespace Banshee.Gui
             get { return "GtkElementsService"; }
         }
     }
-}
\ No newline at end of file
+}



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