Search
lxdream.org :: lxdream/src/gui/callbacks.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/callbacks.c
changeset 238:6af4cc93b137
prev180:e6dcf9b65658
next277:fcc1274776cb
author nkeynes
date Fri Dec 15 10:17:08 2006 +0000 (13 years ago)
permissions -rw-r--r--
last change Add UI for the trace flag
file annotate diff log raw
1.1 --- a/src/gui/callbacks.c Sun Jul 02 04:59:00 2006 +0000
1.2 +++ b/src/gui/callbacks.c Fri Dec 15 10:17:08 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: callbacks.c,v 1.16 2006-07-02 04:59:00 nkeynes Exp $
1.6 + * $Id: callbacks.c,v 1.17 2006-12-15 10:17:08 nkeynes Exp $
1.7 *
1.8 * All GTK callbacks go here (stubs are autogenerated by Glade)
1.9 *
1.10 @@ -27,6 +27,7 @@
1.11 #include "gui/gui.h"
1.12 #include "gdrom/gdrom.h"
1.13 #include "mem.h"
1.14 +#include "mmio.h"
1.15 #include "dreamcast.h"
1.16 #include "loader.h"
1.17
1.18 @@ -155,6 +156,16 @@
1.19 debug_win_toggle_breakpoint( data, selected_row );
1.20 }
1.21
1.22 +void on_trace_button_toggled (GtkToggleButton *button,
1.23 + gpointer user_data)
1.24 +{
1.25 + struct mmio_region *io_rgn = (struct mmio_region *)user_data;
1.26 + gboolean isActive = gtk_toggle_button_get_active(button);
1.27 + if( io_rgn != NULL ) {
1.28 + io_rgn->trace_flag = isActive ? 1 : 0;
1.29 + }
1.30 +}
1.31 +
1.32
1.33 gboolean
1.34 on_debug_win_delete_event (GtkWidget *widget,
.