* gmain.c (gmc_window_setup_from_panel): Fix crash when called

early, before the panel is created.
This commit is contained in:
Pavel Roskin 2001-07-15 06:25:16 +00:00
parent ee8f1d826b
commit 74f034e8d4
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-07-15 Pavel Roskin <proski@gnu.org>
* gmain.c (gmc_window_setup_from_panel): Fix crash when called
early, before the panel is created.
2001-07-14 Pavel Roskin <proski@gnu.org>
* gfind.c: New file - copied from find.c. Reindent, remove

View File

@ -523,7 +523,9 @@ void
gmc_window_setup_from_panel (GnomeDialog *dialog, WPanel *panel)
{
gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_MOUSE);
gnome_dialog_set_parent (dialog, GTK_WINDOW (panel->xwindow));
if (panel && panel->xwindow) {
gnome_dialog_set_parent (dialog, GTK_WINDOW (panel->xwindow));
}
}
/**