frontend *fe = (frontend *)data;
#if GTK_CHECK_VERSION(3,0,0)
+# define ABOUT_PARAMS \
+ "program-name", thegame.name, \
+ "version", ver, \
+ "comments", "Part of Simon Tatham's Portable Puzzle Collection"
+
extern char *const *const xpm_icons[];
extern const int n_xpm_icons;
- GdkPixbuf *icon = gdk_pixbuf_new_from_xpm_data
- ((const gchar **)xpm_icons[n_xpm_icons-1]);
- gtk_show_about_dialog
- (GTK_WINDOW(fe->window),
- "program-name", thegame.name,
- "version", ver,
- "comments", "Part of Simon Tatham's Portable Puzzle Collection",
- "logo", icon,
- (const gchar *)NULL);
- g_object_unref(G_OBJECT(icon));
+
+ if (n_xpm_icons) {
+ GdkPixbuf *icon = gdk_pixbuf_new_from_xpm_data
+ ((const gchar **)xpm_icons[n_xpm_icons-1]);
+
+ gtk_show_about_dialog
+ (GTK_WINDOW(fe->window),
+ ABOUT_PARAMS,
+ "logo", icon,
+ (const gchar *)NULL);
+ g_object_unref(G_OBJECT(icon));
+ }
+ else {
+ gtk_show_about_dialog
+ (GTK_WINDOW(fe->window),
+ ABOUT_PARAMS,
+ (const gchar *)NULL);
+ }
#else
char titlebuf[256];
char textbuf[1024];