Search
lxdream.org :: lxdream/src/gtkui/gtkui.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gtkui/gtkui.c
changeset 546:7d01e597a066
prev543:361ec0a70cf2
next561:533f6b478071
author nkeynes
date Thu Dec 06 09:25:24 2007 +0000 (16 years ago)
permissions -rw-r--r--
last change Suppress enable/disable actions if there's no gui
file annotate diff log raw
1.1 --- a/src/gtkui/gtkui.c Thu Nov 22 11:10:15 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);
.