Search
lxdream.org :: lxdream/src/gui/debug_win.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/debug_win.c
changeset 457:af605fd32c0b
prev455:3080881d00d4
next480:d28c2992f5ee
author nkeynes
date Sun Oct 21 11:38:02 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Finish updating debug gui window bits
file annotate diff log raw
1.1 --- a/src/gui/debug_win.c Sun Oct 21 05:21:35 2007 +0000
1.2 +++ b/src/gui/debug_win.c Sun Oct 21 11:38:02 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: debug_win.c,v 1.25 2007-10-21 05:21:35 nkeynes Exp $
1.6 + * $Id: debug_win.c,v 1.26 2007-10-21 11:38:02 nkeynes Exp $
1.7 * This file is responsible for the main debugger gui frame.
1.8 *
1.9 * Copyright (c) 2005 Nathan Keynes.
1.10 @@ -44,7 +44,7 @@
1.11 GdkEvent *event, gpointer user_data);
1.12 void on_disasm_list_unselect_row (GtkCList *clist, gint row, gint column,
1.13 GdkEvent *event, gpointer user_data);
1.14 -
1.15 +gboolean on_debug_delete_event(GtkWidget *widget, GdkEvent event, gpointer user_data);
1.16
1.17 struct debug_window_info {
1.18 int disasm_from;
1.19 @@ -79,7 +79,6 @@
1.20 GtkWidget *hpaned = gtk_hpaned_new ();
1.21 gtk_paned_set_position (GTK_PANED (hpaned), 800);
1.22
1.23 -
1.24 GtkWidget *disasm_box = gtk_vbox_new(FALSE,0);
1.25 gtk_paned_pack1 (GTK_PANED (hpaned), disasm_box, TRUE, TRUE);
1.26
1.27 @@ -152,6 +151,9 @@
1.28 g_signal_connect ((gpointer) data->disasm_list, "unselect_row",
1.29 G_CALLBACK (on_disasm_list_unselect_row),
1.30 data);
1.31 + g_signal_connect ((gpointer) data->window, "delete_event",
1.32 + G_CALLBACK (on_debug_delete_event),
1.33 + data);
1.34
1.35 data->disasm_from = -1;
1.36 data->disasm_to = -1;
1.37 @@ -442,3 +444,9 @@
1.38 gtk_gui_enable_action( "SetBreakpoint", FALSE );
1.39 gtk_gui_enable_action( "RunTo", FALSE );
1.40 }
1.41 +
1.42 +gboolean on_debug_delete_event(GtkWidget *widget, GdkEvent event, gpointer user_data)
1.43 +{
1.44 + gtk_widget_hide( widget );
1.45 + return TRUE;
1.46 +}
.