aboutsummaryrefslogtreecommitdiff
path: root/gtk.c
diff options
context:
space:
mode:
authorBen Hutchings <benh@debian.org>2022-07-31 01:42:37 +0200
committerSimon Tatham <anakin@pobox.com>2022-07-31 08:53:08 +0100
commite13ad1a18069f792dcebc2a3de38b9c476fd0233 (patch)
tree4222d503ea6da6ab7b897cf4eea78c4ceee3a508 /gtk.c
parent3d0c734e433972d6a9421ebd58763ca5bf1f1355 (diff)
downloadpuzzles-e13ad1a18069f792dcebc2a3de38b9c476fd0233.zip
puzzles-e13ad1a18069f792dcebc2a3de38b9c476fd0233.tar.gz
puzzles-e13ad1a18069f792dcebc2a3de38b9c476fd0233.tar.bz2
puzzles-e13ad1a18069f792dcebc2a3de38b9c476fd0233.tar.xz
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.")
Diffstat (limited to 'gtk.c')
-rw-r--r--gtk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk.c b/gtk.c
index a935a56..8f3a3a6 100644
--- a/gtk.c
+++ b/gtk.c
@@ -3004,7 +3004,7 @@ static void menu_about_event(GtkMenuItem *menuitem, gpointer data)
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 @@ static frontend *new_window(
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++) {