Search
lxdream.org :: lxdream/src/gtkui/gtkui.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gtkui/gtkui.c
changeset 1019:87f191f92f8f
prev1015:ad448bedc48a
next1036:af7b0c5905dd
author nkeynes
date Wed Jun 03 10:29:16 2009 +0000 (13 years ago)
permissions -rw-r--r--
last change Allow multiple input hooks to be registered for the same key - useful to allow
eg binding the same hotkey for run/stop so that it works as a toggle.
file annotate diff log raw
1.1 --- a/src/gtkui/gtkui.c Tue Jun 02 23:16:26 2009 +0000
1.2 +++ b/src/gtkui/gtkui.c Wed Jun 03 10:29:16 2009 +0000
1.3 @@ -301,15 +301,16 @@
1.4
1.5 }
1.6
1.7 -static gboolean gtk_run_later_callback( gpointer unused )
1.8 +static gboolean gtk_do_later_callback( gpointer ptr )
1.9 {
1.10 - dreamcast_run();
1.11 + do_later_callback_t func = (do_later_callback_t)ptr;
1.12 + func();
1.13 return FALSE;
1.14 }
1.15
1.16 -void gui_run_later(void)
1.17 +void gui_do_later( do_later_callback_t func )
1.18 {
1.19 - g_timeout_add_seconds(0, gtk_run_later_callback, NULL);
1.20 + g_timeout_add_seconds(0, gtk_do_later_callback, func);
1.21 }
1.22
1.23 void gtk_gui_show_debugger()
.