[gedit/wip/redesign] Move entries to window



commit 544d7e573e5e805e3db278d11326c486e280bd75
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Mon May 6 20:12:34 2013 +0200

    Move entries to window

 gedit/Makefile.am    |    1 -
 gedit/gedit-ui.h     |   77 --------------------------------------------------
 gedit/gedit-window.c |   35 ++++++++++++++++++++++-
 3 files changed, 34 insertions(+), 79 deletions(-)
---
diff --git a/gedit/Makefile.am b/gedit/Makefile.am
index c953798..6a01932 100644
--- a/gedit/Makefile.am
+++ b/gedit/Makefile.am
@@ -118,7 +118,6 @@ NOINST_H_FILES =                    \
        gedit-status-menu-button.h      \
        gedit-tab-label.h               \
        gedittextregion.h               \
-       gedit-ui.h                      \
        gedit-view-frame.h              \
        gedit-window-private.h
 
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index 675e39d..62fb730 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -41,7 +41,6 @@
 #include <gtksourceview/gtksource.h>
 #include <libpeas/peas-extension-set.h>
 
-#include "gedit-ui.h"
 #include "gedit-window.h"
 #include "gedit-window-private.h"
 #include "gedit-app.h"
@@ -3094,6 +3093,40 @@ extension_removed (PeasExtensionSet *extensions,
        gtk_ui_manager_ensure_update (window->priv->manager);
 }
 
+static GActionEntry win_entries[] = {
+       { "open", _gedit_cmd_file_open },
+       { "new_tab", _gedit_cmd_file_new },
+       { "save", _gedit_cmd_file_save },
+       { "save_as", _gedit_cmd_file_save_as },
+       { "print", _gedit_cmd_file_print },
+       { "revert", _gedit_cmd_file_revert },
+       { "close", _gedit_cmd_file_close },
+       { "fullscreen", _gedit_cmd_view_toggle_fullscreen_mode },
+       { "leave_fullscreen", _gedit_cmd_view_leave_fullscreen_mode },
+       { "find", _gedit_cmd_search_find },
+       { "find_next", _gedit_cmd_search_find_next },
+       { "find_prev", _gedit_cmd_search_find_prev },
+       { "replace", _gedit_cmd_search_replace },
+       { "clear_highlight", _gedit_cmd_search_clear_highlight },
+       { "goto_line", _gedit_cmd_search_goto_line },
+       { "save_all", _gedit_cmd_file_save_all },
+       { "close_all", _gedit_cmd_file_close_all },
+       { "new_tab_group", _gedit_cmd_documents_new_tab_group },
+       { "previous_tab_group", _gedit_cmd_documents_previous_tab_group },
+       { "next_tab_group", _gedit_cmd_documents_next_tab_group },
+       { "previous_document", _gedit_cmd_documents_previous_document },
+       { "next_document", _gedit_cmd_documents_next_document },
+       { "move_to_new_window", _gedit_cmd_documents_move_to_new_window },
+       { "undo", _gedit_cmd_edit_undo },
+       { "redo", _gedit_cmd_edit_redo },
+       { "cut", _gedit_cmd_edit_cut },
+       { "copy", _gedit_cmd_edit_copy },
+       { "paste", _gedit_cmd_edit_paste },
+       { "delete", _gedit_cmd_edit_delete },
+       { "select_all", _gedit_cmd_edit_select_all },
+       { "hightlight_mode", NULL }
+};
+
 static void
 gedit_window_init (GeditWindow *window)
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]