mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
Updated GTK3 menu icon fallback to use icon names instead of stock IDs while preserving GTK2 behavior.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user