Search
lxdream.org :: lxdream/src/gui/debugcb.c
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/debugcb.c
changeset 455:3080881d00d4
prev450:207461e79f21
author nkeynes
date Sun Oct 21 05:31:07 2007 +0000 (16 years ago)
permissions -rw-r--r--
last change Rename mmr_win.c to mmio_win.c
view annotate diff log raw
     1 /**
     2  * $Id: debugcb.c,v 1.3 2007-10-21 05:21:35 nkeynes Exp $
     3  *
     4  * All GTK callbacks go here (stubs are autogenerated by Glade)
     5  *
     6  * Copyright (c) 2005 Nathan Keynes.
     7  *
     8  * This program is free software; you can redistribute it and/or modify
     9  * it under the terms of the GNU General Public License as published by
    10  * the Free Software Foundation; either version 2 of the License, or
    11  * (at your option) any later version.
    12  *
    13  * This program is distributed in the hope that it will be useful,
    14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    16  * GNU General Public License for more details.
    17  */
    19 #include <gnome.h>
    21 #include "config.h"
    22 #include "gui/debugcb.h"
    23 #include "gui/debugif.h"
    24 #include "gui/gtkui.h"
    25 #include "gdrom/gdrom.h"
    26 #include "mem.h"
    27 #include "mmio.h"
    28 #include "dreamcast.h"
    29 #include "loader.h"
    30 #include "pvr2/pvr2.h"
    32 void on_trace_button_toggled           (GtkToggleButton *button,
    33 					gpointer user_data)
    34 {
    35     struct mmio_region *io_rgn = (struct mmio_region *)user_data;
    36     gboolean isActive = gtk_toggle_button_get_active(button);
    37     if( io_rgn != NULL ) {
    38 	io_rgn->trace_flag = isActive ? 1 : 0;
    39     }
    40 }
    43 gboolean
    44 on_mmr_win_delete_event                (GtkWidget       *widget,
    45                                         GdkEvent        *event,
    46                                         gpointer         user_data)
    47 {
    48     mmr_close_win();
    49     return TRUE;
    50 }
    53 void
    54 on_mmr_close_clicked                   (GtkButton       *button,
    55                                         gpointer         user_data)
    56 {
    57     mmr_close_win();
    58 }
.