From 8e6e3037ba8cec0944fdbb300eb8e6aedf37110e Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Mon, 26 Nov 2018 15:32:26 +0100 Subject: [PATCH] Always show icons in the go to symbol popup This uses a menu and is thus subject to the menu icons visibility setting, but here it should reflect the view from the symbols list, and thus show the icon in all cases. --- src/symbols.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/symbols.c b/src/symbols.c index ab51cccc..0133c28d 100644 --- a/src/symbols.c +++ b/src/symbols.c @@ -1953,7 +1953,7 @@ static void show_goto_popup(GeanyDocument *doc, GPtrArray *tags, gboolean have_b image = gtk_image_new_from_pixbuf(symbols_icons[get_tag_class(tmtag)].pixbuf); label = g_object_new(GTK_TYPE_LABEL, "label", text, "use-markup", TRUE, "xalign", 0.0, NULL); - item = g_object_new(GTK_TYPE_IMAGE_MENU_ITEM, "image", image, "child", label, NULL); + item = g_object_new(GTK_TYPE_IMAGE_MENU_ITEM, "image", image, "child", label, "always-show-image", TRUE, NULL); g_signal_connect_data(item, "activate", G_CALLBACK(on_goto_popup_item_activate), tm_tag_ref(tmtag), (GClosureNotify) tm_tag_unref, 0); gtk_menu_shell_append(GTK_MENU_SHELL(menu), item);