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:
parent
8498880540
commit
64e9bc4ddc
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue