[banshee/stable] Execute the 'gtk-menu-popup-delay = 225' hack whenever StyleSet (BGO #524706)
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Subject: [banshee/stable] Execute the 'gtk-menu-popup-delay = 225' hack whenever StyleSet (BGO #524706)
- Date: Thu, 30 Apr 2009 14:39:28 -0400 (EDT)
commit 7b8ba84fecc6f0615eaae72cfd3423ecbcef4aa5
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 148446e..10ec46b 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]