hide widgets i/of destroying them (so they can be opened again

(bug was added when changed delete-event handler)
This commit is contained in:
damdoum 2007-01-14 02:01:50 +00:00
parent 8498880540
commit 64e9bc4ddc
2 changed files with 5 additions and 1 deletions

View File

@ -80,6 +80,8 @@ void on_wtools_1_IOregs_show (GtkWidget *widget, gpointer user_data) {
} }
gboolean on_wtools_1_IOregs_delete_event (GtkWidget *widget, GdkEvent *event, gpointer user_data) { gboolean on_wtools_1_IOregs_delete_event (GtkWidget *widget, GdkEvent *event, gpointer user_data) {
unregister_Tool(wtools_1_update); unregister_Tool(wtools_1_update);
gtk_widget_hide(widget);
return TRUE;
} }

View File

@ -167,11 +167,12 @@ void on_wtools_2_GotoButton_clicked (GtkButton *button, gpointer user_data) {
void on_wtools_2_MemView_show (GtkWidget *widget, gpointer user_data) { void on_wtools_2_MemView_show (GtkWidget *widget, gpointer user_data) {
initialize(); initialize();
change_address(RANGE_MIN);
register_Tool(wtools_2_update); register_Tool(wtools_2_update);
} }
gboolean on_wtools_2_MemView_delete_event (GtkWidget *widget, GdkEvent *event, gpointer user_data) { gboolean on_wtools_2_MemView_delete_event (GtkWidget *widget, GdkEvent *event, gpointer user_data) {
unregister_Tool(wtools_2_update); unregister_Tool(wtools_2_update);
gtk_widget_hide(widget);
return TRUE;
} }
@ -240,6 +241,7 @@ void initialize() {
#undef DUP #undef DUP
#undef PATT #undef PATT
init = TRUE; init = TRUE;
change_address(RANGE_MIN);
} }
/* PAINT memory panel */ /* PAINT memory panel */