summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/controls/menu/native_menu_gtk.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/views/controls/menu/native_menu_gtk.cc b/views/controls/menu/native_menu_gtk.cc
index 96b31f0..a0b2b0a 100644
--- a/views/controls/menu/native_menu_gtk.cc
+++ b/views/controls/menu/native_menu_gtk.cc
@@ -353,6 +353,12 @@ GtkWidget* NativeMenuGtk::AddMenuItemAt(int index,
gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(menu_item),
gtk_image_new_from_pixbuf(pixbuf));
g_object_unref(pixbuf);
+
+#if GTK_CHECK_VERSION(2,16,0)
+ // Show the image even if the "gtk-menu-images" setting is turned off.
+ gtk_image_menu_item_set_always_show_image(
+ GTK_IMAGE_MENU_ITEM(menu_item), TRUE);
+#endif
} else {
menu_item = gtk_menu_item_new_with_mnemonic(label.c_str());
}