Bug fix: Copy icon not displayed
authorColin Clark <colin.clark@cclark.uk>
Tue, 9 May 2023 09:27:39 +0000 (10:27 +0100)
committerColin Clark <colin.clark@cclark.uk>
Tue, 9 May 2023 09:27:39 +0000 (10:27 +0100)
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.

src/ui-misc.cc

index f0bff26..901364f 100644 (file)
@@ -253,7 +253,11 @@ GtkWidget *pref_button_new(GtkWidget *parent_box, const gchar *stock_id,
 
                button = gtk_button_new();
 
 
                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);
                if (text)
                        {
                        label = gtk_label_new_with_mnemonic(text);