Replace custom help->about dialog with gtk_show_about_dialog
[emu8051.git] / src / emugtk.c
index 1a380f8..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;
 
@@ -240,8 +241,6 @@ AddMenu(void)
 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;
 
@@ -449,6 +448,8 @@ main(int argc, char **argv)
 
        if (hex_file != NULL)
                emugtk_new_file(hex_file);
+       else
+               emugtk_Reset();
 
        gtk_main();