[banshee/gtk3] GtkElementsService: Port the gtk-menu-popup-delay hack to Gtk.Settings



commit aa6100dd7f4387bf7131e55190c72a1d369f6eb6
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Sun Jul 31 15:44:27 2011 +0200

    GtkElementsService: Port the gtk-menu-popup-delay hack to Gtk.Settings
    
    I'm not sure the bug still exist, but there is no drawback in playing it
    safe, just in case.

 .../Banshee.Gui/GtkElementsService.cs              |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/GtkElementsService.cs b/src/Core/Banshee.ThickClient/Banshee.Gui/GtkElementsService.cs
index 4688080..f6245a5 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/GtkElementsService.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/GtkElementsService.cs
@@ -57,9 +57,11 @@ namespace Banshee.Gui
         {
             SourceInvalidateIconPixbuf (ServiceManager.SourceManager.Sources);
 
-            // Ugly hack to avoid stupid themes that set this to 0, causing a huge
+            // Ugly hack to avoid having this being set to 0, causing a huge
             // bug when constructing the "add to playlist" popup menu (BGO #524706)
-            Gtk.Rc.ParseString ("gtk-menu-popup-delay = 225");
+            if (Gtk.Settings.Default.MenuPopupDelay < 1) {
+                Gtk.Settings.Default.MenuPopupDelay = 225;
+            }
 
             OnThemeChanged ();
         }



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