[gtranslator] Create actions-documents.c
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtranslator] Create actions-documents.c
- Date: Tue, 18 Aug 2009 20:14:13 +0000 (UTC)
commit cf485ff3bfcf2290c41725a898d6c4e656794cb1
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon Aug 17 23:01:20 2009 +0200
Create actions-documents.c
src/Makefile.am | 1 +
src/actions-go.c | 18 ------------------
src/actions.h | 15 +++++++++------
src/window.c | 4 ++--
4 files changed, 12 insertions(+), 26 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 1f30cce..651fa6b 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -103,6 +103,7 @@ libgtranslator_la_SOURCES = \
utils.c \
msg.c \
actions.h \
+ actions-documents.c \
actions-file.c \
actions-go.c \
actions-edit.c \
diff --git a/src/actions-go.c b/src/actions-go.c
index 5785726..77aacb2 100644
--- a/src/actions-go.c
+++ b/src/actions-go.c
@@ -31,24 +31,6 @@
#include "window.h"
-void
-gtranslator_file_go_to_next (GtkAction * action,
- GtranslatorWindow *window)
-{
- GtranslatorNotebook *notebook;
- notebook = gtranslator_window_get_notebook (window);
- gtk_notebook_next_page (GTK_NOTEBOOK (notebook));
-}
-
-void
-gtranslator_file_go_to_prev (GtkAction * action,
- GtranslatorWindow *window)
-{
- GtranslatorNotebook *notebook;
- notebook = gtranslator_window_get_notebook (window);
- gtk_notebook_prev_page (GTK_NOTEBOOK (notebook));
-}
-
void
gtranslator_message_go_to_first(GtkAction *action,
GtranslatorWindow *window)
diff --git a/src/actions.h b/src/actions.h
index a51f0df..75e47ad 100644
--- a/src/actions.h
+++ b/src/actions.h
@@ -96,12 +96,6 @@ void gtranslator_actions_view_translation_memory
GtranslatorWindow *window);
/*Go*/
-void gtranslator_file_go_to_next (GtkAction * action,
- GtranslatorWindow *window);
-
-void gtranslator_file_go_to_prev (GtkAction * action,
- GtranslatorWindow *window);
-
void gtranslator_message_go_to_first (GtkAction * action,
GtranslatorWindow *window);
@@ -146,6 +140,15 @@ void _gtranslator_actions_search_find (GtkAction *action,
void _gtranslator_actions_search_replace (GtkAction *action,
GtranslatorWindow *window);
+/*Documents*/
+void gtranslator_actions_documents_next_document
+ (GtkAction * action,
+ GtranslatorWindow *window);
+
+void gtranslator_actions_documents_previous_document
+ (GtkAction * action,
+ GtranslatorWindow *window);
+
/*Help*/
void gtranslator_window_show_home_page (GtkAction *action,
gpointer useless);
diff --git a/src/window.c b/src/window.c
index 4176805..f9a000f 100644
--- a/src/window.c
+++ b/src/window.c
@@ -282,9 +282,9 @@ static const GtkActionEntry entries[] = {
{ "FileCloseAll", GTK_STOCK_CLOSE, N_("_Close All"), "<shift><control>W",
N_("Close all open files"), NULL }, //G_CALLBACK (_gedit_cmd_file_close_all) },
{ "DocumentsPreviousDocument", NULL, N_("_Previous Document"), "<alt><control>Page_Up",
- N_("Activate previous document"), G_CALLBACK (gtranslator_file_go_to_prev) },
+ N_("Activate previous document"), G_CALLBACK (gtranslator_actions_documents_previous_document) },
{ "DocumentsNextDocument", NULL, N_("_Next Document"), "<alt><control>Page_Down",
- N_("Activate next document"), G_CALLBACK (gtranslator_file_go_to_next) }
+ N_("Activate next document"), G_CALLBACK (gtranslator_actions_documents_next_document) }
};
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]