mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-12 00:30:19 +00:00
Explicitly show GTK3 menu item widgets (image, label, box) after building the menu item to ensure labels/icons display reliably.
This commit is contained in:
@@ -2144,7 +2144,10 @@ create_icon_menu (char *labeltext, void *stock_name, int is_stock)
|
||||
gtk_box_pack_start (GTK_BOX (box), image, FALSE, FALSE, 0);
|
||||
gtk_box_pack_start (GTK_BOX (box), label_widget, FALSE, FALSE, 0);
|
||||
gtk_container_add (GTK_CONTAINER (item), box);
|
||||
gtk_widget_show_all (item);
|
||||
if (image)
|
||||
gtk_widget_show (image);
|
||||
gtk_widget_show (label_widget);
|
||||
gtk_widget_show (box);
|
||||
#else
|
||||
item = gtk_image_menu_item_new_with_mnemonic (labeltext);
|
||||
gtk_image_menu_item_set_image ((GtkImageMenuItem *)item, img);
|
||||
|
||||
Reference in New Issue
Block a user