Implemented preferences dialog loading
This commit is contained in:
parent
80033a7751
commit
a86a65fcf8
|
@ -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 */
|
||||
|
|
Reference in New Issue