diff --git a/gnoemoe/widgets/gm-app-view.c b/gnoemoe/widgets/gm-app-view.c index 7469fb5..296873e 100644 --- a/gnoemoe/widgets/gm-app-view.c +++ b/gnoemoe/widgets/gm-app-view.c @@ -21,6 +21,7 @@ #include "gm-world-view.h" #include "gm-world.h" #include "dialogs/gm-worlds-list-dialog.h" +#include "dialogs/gm-open-world-dialog.h" #include "dialogs/gm-world-logs-dialog.h" #include "dialogs/gm-world-properties-dialog.h" #include "dialogs/gm-scripts-dialog.h" @@ -1056,11 +1057,6 @@ on_gm_app_view_world_quit(GtkMenuItem *menuitem, GmAppView *view) { gtk_widget_destroy(GTK_WIDGET(view)); } -void -on_gm_app_view_edit_worlds(GtkMenuItem * menuitem, GmAppView *view) { - gm_worlds_list_dialog_run(); -} - void on_gm_app_view_accel_switch_page(GtkAccelGroup * accelgroup, GObject * arg1, guint arg2, GdkModifierType arg3, AccelInfo *info) { @@ -1624,6 +1620,11 @@ on_gm_app_view_world_new(GtkMenuItem * menuitem, GmAppView *view) { gm_world_properties_dialog_run_new(NULL); } +void +on_gm_app_view_world_open(GtkMenuItem * menuitem, GmAppView *view) { + gm_open_world_dialog_run(); +} + void on_gm_app_view_edit_world(GtkMenuItem * menuitem, GmAppView *view) { GmWorld *active = gm_app_view_active_world(view); @@ -1631,6 +1632,11 @@ on_gm_app_view_edit_world(GtkMenuItem * menuitem, GmAppView *view) { gm_world_properties_dialog_run(active); } +void +on_gm_app_view_edit_worlds(GtkMenuItem * menuitem, GmAppView *view) { + gm_worlds_list_dialog_run(); +} + void on_gm_app_view_world_connect(GtkMenuItem * menuitem, GmAppView *view) { GmWorld *world = gm_app_view_active_world(view); @@ -1663,7 +1669,7 @@ on_gm_app_view_world_logs(GtkMenuItem *menuitem, GmAppView *view) { GmWorld *world = gm_app_view_active_world(view); dlg = gm_world_logs_dialog_new(gm_app_view_active_world(view), &tview); - + if (dlg != NULL) { smodel = gtk_tree_view_get_model(tview); diff --git a/gnoemoe/widgets/gm-app-view.h b/gnoemoe/widgets/gm-app-view.h index 35d126b..fd506c5 100644 --- a/gnoemoe/widgets/gm-app-view.h +++ b/gnoemoe/widgets/gm-app-view.h @@ -55,6 +55,7 @@ GtkAction *gm_app_view_action(GmAppView *view, gchar const *path); /* Callbacks */ void on_gm_app_view_world_new(GtkMenuItem * menuitem, GmAppView *view); +void on_gm_app_view_world_open(GtkMenuItem * menuitem, GmAppView *view); void on_gm_app_view_world_connect(GtkMenuItem * menuitem, GmAppView *view); void on_gm_app_view_world_logs(GtkMenuItem * menuitem, GmAppView *view); void on_gm_app_view_world_close(GtkMenuItem * menuitem, GmAppView *view);