ref: e13ad1a18069f792dcebc2a3de38b9c476fd0233
parent: 3d0c734e433972d6a9421ebd58763ca5bf1f1355
author: Ben Hutchings <benh@debian.org>
date: Sat Jul 30 21:42:37 EDT 2022
gtk: Adjust to reordering of XPM icons Commit cc7f550 "Migrate to a CMake-based build system." reversed the order of xpm_icons, so the largest icon (96x96) is now first and the smallest (16x16) is now last. The About dialog now shows the smallest icon, and the window icon is now the largest icon. Change the array indexing so that the same size icons are used as before. Fixes: cc7f5503dc8f ("Migrate to a CMake-based build system.")
--- a/gtk.c
+++ b/gtk.c
@@ -3004,7 +3004,7 @@
if (n_xpm_icons) {
GdkPixbuf *icon = gdk_pixbuf_new_from_xpm_data
- ((const gchar **)xpm_icons[n_xpm_icons-1]);
+ ((const gchar **)xpm_icons[0]);
gtk_show_about_dialog
(GTK_WINDOW(fe->window),
@@ -3558,7 +3558,7 @@
if (n_xpm_icons) {
gtk_window_set_icon(GTK_WINDOW(fe->window),
gdk_pixbuf_new_from_xpm_data
- ((const gchar **)xpm_icons[0]));
+ ((const gchar **)xpm_icons[n_xpm_icons-1]));
iconlist = NULL;
for (n = 0; n < n_xpm_icons; n++) {