Search
lxdream.org :: lxdream :: r546:7d01e597a066
lxdream 0.9.1
released Jun 29
Download Now
changeset546:7d01e597a066
parent545:fdcdcd8b9fd1
child547:d6e00ffc4adc
authornkeynes
dateThu Dec 06 09:25:24 2007 +0000 (12 years ago)
Suppress enable/disable actions if there's no gui
src/gtkui/gtkui.c
1.1 --- a/src/gtkui/gtkui.c Thu Nov 29 09:28:28 2007 +0000
1.2 +++ b/src/gtkui/gtkui.c Thu Dec 06 09:25:24 2007 +0000
1.3 @@ -349,8 +349,10 @@
1.4
1.5 void gtk_gui_update( void )
1.6 {
1.7 - gtk_gui_enable_action("Run", dreamcast_can_run() && !dreamcast_is_running() );
1.8 - gtk_gui_enable_action("Pause", dreamcast_is_running() );
1.9 + if( global_action_group ) {
1.10 + gtk_gui_enable_action("Run", dreamcast_can_run() && !dreamcast_is_running() );
1.11 + gtk_gui_enable_action("Pause", dreamcast_is_running() );
1.12 + }
1.13 if( debug_win ) {
1.14 debug_window_set_running( debug_win, FALSE );
1.15 debug_window_update(debug_win);
.