The application must restarted for the changes to take effect.
Added a message for telling this to the user.
static int running;
static int running_function_tag;
-static int restart_gui = true;
static int emugtk_window_init_complete;
static GtkWidget *vpaned1;
cfg->main_pane_pos = gtk_paned_get_position(GTK_PANED(paned));
}
-void
-emugtk_restart_gui(void)
-{
- emugtk_stop_running();
-
- gtk_widget_destroy(mainwin);
-
- restart_gui = true;
-}
-
void
emugtk_quit_gui(void)
{
gtk_main_quit();
-
- restart_gui = false;
}
static void
cpu8051_Reset();
- while (restart_gui == true) {
- log_info("Init GUI");
-
- emugtk_window_init();
- emugtk_UpdateDisplay();
- gtk_main();
- }
+ log_info("Init GUI");
+ emugtk_window_init();
+ emugtk_UpdateDisplay();
+ gtk_main();
log_info("Terminate");
void
emugtk_UpdateDisplay(void);
-void
-emugtk_restart_gui(void);
-
void
emugtk_quit_gui(void);
if (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget))) {
log_info(" Switching to layout %d", id);
cfg->layout = id;
- emugtk_restart_gui();
+
+ ShowMessage("Notice",
+ "You must restart for the changes to take effect",
+ GTK_JUSTIFY_LEFT, MESSAGE_DIALOG_NORMAL_FONT);
}
}