From: Colin Clark Date: Tue, 9 May 2023 09:27:39 +0000 (+0100) Subject: Bug fix: Copy icon not displayed X-Git-Tag: v2.1~56 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=b350ff66178b0d36b9f6b8a67d42816621a16991 Bug fix: Copy icon not displayed In the Copy dialog, the Copy icon was shown as a broken icon. Reverting from gtk_image_new_from_icon_name() to gtk_image_new_from_stock() solves the problem. I do not know why. --- diff --git a/src/ui-misc.cc b/src/ui-misc.cc index f0bff26a..901364fc 100644 --- a/src/ui-misc.cc +++ b/src/ui-misc.cc @@ -253,7 +253,11 @@ GtkWidget *pref_button_new(GtkWidget *parent_box, const gchar *stock_id, button = gtk_button_new(); - if (stock_id) image = gtk_image_new_from_icon_name(stock_id, GTK_ICON_SIZE_BUTTON); + if (stock_id) + { + image = gtk_image_new_from_stock(stock_id, GTK_ICON_SIZE_BUTTON); + } + if (text) { label = gtk_label_new_with_mnemonic(text);