mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-19 04:00:19 +00:00
Updated chanlist icon buttons to use GTK3 icon names while keeping GTK2 stock image usage behind #if !HAVE_GTK3.
This commit is contained in:
@@ -115,7 +115,11 @@ chanlist_icon_button (const char *label, const char *icon_name,
|
|||||||
GtkWidget *image;
|
GtkWidget *image;
|
||||||
|
|
||||||
button = gtk_button_new_with_mnemonic (label);
|
button = gtk_button_new_with_mnemonic (label);
|
||||||
|
#if HAVE_GTK3
|
||||||
image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_MENU);
|
image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_MENU);
|
||||||
|
#elif !HAVE_GTK3
|
||||||
|
image = gtk_image_new_from_stock (icon_name, GTK_ICON_SIZE_MENU);
|
||||||
|
#endif
|
||||||
gtk_button_set_image (GTK_BUTTON (button), image);
|
gtk_button_set_image (GTK_BUTTON (button), image);
|
||||||
gtk_button_set_use_underline (GTK_BUTTON (button), TRUE);
|
gtk_button_set_use_underline (GTK_BUTTON (button), TRUE);
|
||||||
g_signal_connect (G_OBJECT (button), "clicked", callback, userdata);
|
g_signal_connect (G_OBJECT (button), "clicked", callback, userdata);
|
||||||
|
|||||||
Reference in New Issue
Block a user