From a86a65fcf8a082c2a1f739432cd09037545bd901 Mon Sep 17 00:00:00 2001 From: Jesse van den Kieboom Date: Sun, 6 Nov 2005 15:53:49 +0000 Subject: [PATCH] Implemented preferences dialog loading --- src/widgets/gm-app-view.c | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/widgets/gm-app-view.c b/src/widgets/gm-app-view.c index b7cd8cf..c8d2430 100644 --- a/src/widgets/gm-app-view.c +++ b/src/widgets/gm-app-view.c @@ -25,6 +25,7 @@ #include "../dialogs/gm-world-logs-dialog.h" #include "../dialogs/gm-world-properties-dialog.h" #include "../dialogs/gm-scripts-dialog.h" +#include "../dialogs/gm-preferences-dialog.h" #include "gm-world-tab.h" //#include "if_world.h" @@ -405,21 +406,6 @@ gm_app_view_application(GmAppView *view) { return view->priv->application; } -void -notebook_focus_with_label(GtkNotebook * note, gchar * caption) { - int p = gtk_notebook_get_n_pages(note); - int i; - GtkWidget *child; - - for (i = 0; i < p; i++) { - child = gtk_notebook_get_nth_page(note, i); - if (!g_strcasecmp(gtk_notebook_get_tab_label_text(note, child), caption)) { - gtk_notebook_set_current_page(note, i); - break; - } - } -} - void gm_app_view_destroy_world_menu_item(GmAppViewWorldMenuItem *item) { g_object_unref(item->action); @@ -1004,8 +990,7 @@ on_gm_app_view_check_button_search_direction_toggled(GtkToggleButton *button, void on_gm_app_view_edit_preferences(GtkMenuItem * menuitem, GmAppView *view) { - /* TODO: implementation */ - //create_preferences(main_get_options()); + gm_preferences_dialog_run(); } /* Tab moving from gedit */