[f-spot] Shows tag icons in tag selection menus.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Shows tag icons in tag selection menus.
- Date: Thu, 20 May 2010 22:21:42 +0000 (UTC)
commit 76ad3f68a1b4765ecd6468b00a533d0bf0989750
Author: Anton Keks <anton azib net>
Date: Thu May 20 01:13:07 2010 +0300
Shows tag icons in tag selection menus.
Overrides Gnome 2.28+ default setting not to show menuitem icons (needs gtk 2.16+)
src/Widgets/TagMenu.cs | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/Widgets/TagMenu.cs b/src/Widgets/TagMenu.cs
index 163f67d..82d4975 100644
--- a/src/Widgets/TagMenu.cs
+++ b/src/Widgets/TagMenu.cs
@@ -24,8 +24,13 @@ public class TagMenu : Menu {
public TagMenuItem (Tag t, string name) : base (name.Replace ("_", "__"))
{
Value = t;
- if (t.Icon != null)
+ if (t.Icon != null) {
this.Image = new Gtk.Image (t.SizedIcon);
+#if GTK_2_16
+ // override Gnome 2.28+ default setting not to show menuitem icons
+ GtkBeans.ImageMenuItemExtensions.SetAlwaysShowImage (this, true);
+#endif
+ }
}
public static TagMenuItem IndentedItem (Tag t)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]