Search
lxdream.org :: lxdream :: r845:d6131bbe2219
lxdream 0.9.1
released Jun 29
Download Now
changeset845:d6131bbe2219
parent844:0e645cc6dc59
child846:32ab6b592a8a
authornkeynes
dateSat Sep 06 08:10:55 2008 +0000 (11 years ago)
Check main window has been created when setting the grabability
src/gtkui/gtkui.c
1.1 --- a/src/gtkui/gtkui.c Sat Sep 06 05:21:57 2008 +0000
1.2 +++ b/src/gtkui/gtkui.c Sat Sep 06 08:10:55 2008 +0000
1.3 @@ -262,7 +262,9 @@
1.4
1.5 void gui_set_use_grab( gboolean flag )
1.6 {
1.7 - main_window_set_use_grab(main_win, TRUE);
1.8 + if( main_win != NULL ) {
1.9 + main_window_set_use_grab(main_win, TRUE);
1.10 + }
1.11 }
1.12
1.13 gboolean gui_error_dialog( const char *msg, ... )
.