Updated GTK3 menu icon fallback to use icon names instead of stock IDs while preserving GTK2 behavior.

This commit is contained in:
2026-01-23 07:38:43 -07:00
parent b934b1b940
commit fae83a34bc

View File

@@ -288,7 +288,13 @@ menu_quick_item (char *cmd, char *label, GtkWidget * menu, int flags,
if (access (path, R_OK) == 0)
img = gtk_image_new_from_file (path);
else
{
#if HAVE_GTK3
img = gtk_image_new_from_icon_name (icon, GTK_ICON_SIZE_MENU);
#else
img = gtk_image_new_from_stock (icon, GTK_ICON_SIZE_MENU);
#endif
}
g_free (path);
}