Add debug log functions
[emu8051.git] / src / emugtk.c
index 6eff607..4b256f9 100644 (file)
@@ -49,7 +49,8 @@
 
 static int running;
 static int running_function_tag;
-static GtkWidget *mainwin;
+
+GtkWidget *mainwin;
 
 extern struct app_config_t *cfg;
 
@@ -234,16 +235,12 @@ AddMenu(void)
        /* Adding the 'Help' submenu */
        HelpAddMenu(menu_bar);
 
-       gtk_widget_show_all(GTK_WIDGET(menu_bar));
-
        return menu_bar;
 }
 
 static int
 mainwin_configure_event(GtkWindow *window, GdkEvent *event, gpointer data)
 {
-       //event->configure.x;
-       //event->configure.y;
        cfg->win_width = event->configure.width;
        cfg->win_height = event->configure.height;
 
@@ -451,6 +448,8 @@ main(int argc, char **argv)
 
        if (hex_file != NULL)
                emugtk_new_file(hex_file);
+       else
+               emugtk_Reset();
 
        gtk_main();