mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-29 19:22:56 +03:00
* gmain.c (gmc_window_setup_from_panel): Fix crash when called
early, before the panel is created.
This commit is contained in:
parent
ee8f1d826b
commit
74f034e8d4
@ -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
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user