projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://www.uw-madison.lkams.kernel.org/pub/mirrors/fink/distfiles/xscreensaver-4...
[xscreensaver]
/
driver
/
demo-Gtk.c
diff --git
a/driver/demo-Gtk.c
b/driver/demo-Gtk.c
index 1d7e91fd620e84e8ce824c237d922e66d5580c4c..b2620a4f7ef12d17e8488a2a6b1afae377dea322 100644
(file)
--- a/
driver/demo-Gtk.c
+++ b/
driver/demo-Gtk.c
@@
-431,7
+431,8
@@
warning_dialog (GtkWidget *parent, const char *message,
while (parent && !parent->window)
parent = parent->parent;
while (parent && !parent->window)
parent = parent->parent;
- if (!GTK_WIDGET (parent)->window) /* too early to pop up transient dialogs */
+ if (!parent ||
+ !GTK_WIDGET (parent)->window) /* too early to pop up transient dialogs */
{
fprintf (stderr, "%s: too early for dialog?\n", progname);
return;
{
fprintf (stderr, "%s: too early for dialog?\n", progname);
return;
@@
-769,7
+770,6
@@
doc_menu_cb (GtkMenuItem *menuitem, gpointer user_data)
sprintf (help_command + strlen(help_command),
p->load_url_command, p->help_url, p->help_url);
strcat (help_command, " ) &");
sprintf (help_command + strlen(help_command),
p->load_url_command, p->help_url, p->help_url);
strcat (help_command, " ) &");
-fprintf(stderr, "## %s\n", help_command);
system (help_command);
free (help_command);
}
system (help_command);
free (help_command);
}