[libwnck] [selector] Always show icons in menu
- From: Vincent Untz <vuntz src gnome org>
- To: svn-commits-list gnome org
- Subject: [libwnck] [selector] Always show icons in menu
- Date: Wed, 1 Jul 2009 13:35:38 +0000 (UTC)
commit 51ba286ce84a1fd8cc454d1f8911bc06e0301bae
Author: Vincent Untz <vuntz gnome org>
Date: Wed Jul 1 15:34:12 2009 +0200
[selector] Always show icons in menu
This is a non-standard menu where icons are used to identify
applications, so we don't want to hide icons when icons in menus are
disabled.
Also require gtk+ 2.16 for gtk_image_menu_item_set_always_show_image().
configure.in | 2 +-
libwnck/selector.c | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/configure.in b/configure.in
index 7c33472..ee6e360 100644
--- a/configure.in
+++ b/configure.in
@@ -122,7 +122,7 @@ AC_SUBST(XRES_PACKAGE)
AC_SUBST(XLIB_CFLAGS)
AC_SUBST(XLIB_LIBS)
-PKG_CHECK_MODULES(LIBWNCK, gtk+-2.0 >= 2.11.3 glib-2.0 >= 2.16.0 gobject-2.0 >= 2.13.0 $STARTUP_NOTIFICATION_PACKAGE $XRES_PACKAGE)
+PKG_CHECK_MODULES(LIBWNCK, gtk+-2.0 >= 2.16.0 glib-2.0 >= 2.16.0 gobject-2.0 >= 2.13.0 $STARTUP_NOTIFICATION_PACKAGE $XRES_PACKAGE)
AC_SUBST(LIBWNCK_LIBS)
AC_SUBST(LIBWNCK_CFLAGS)
diff --git a/libwnck/selector.c b/libwnck/selector.c
index 1588bcc..775c7f0 100644
--- a/libwnck/selector.c
+++ b/libwnck/selector.c
@@ -583,6 +583,7 @@ wnck_selector_item_new (WnckSelector *selector,
};
item = gtk_image_menu_item_new ();
+ gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (item), TRUE);
ellipsizing_label = gtk_label_new (label);
gtk_misc_set_alignment (GTK_MISC (ellipsizing_label), 0.0, 0.5);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]