From 73d28bcf0b72658c77272b01a1c338f8c0fe7662 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 5 Sep 2003 16:50:01 +0000 Subject: Use gtk_action_group_set_translation_domain() to restore menu and popup 2003-09-05 Christian Persch * src/bookmarks/ephy-bookmarks-editor.c: (ephy_bookmarks_editor_construct): * src/ephy-history-window.c: (ephy_history_window_construct): * src/ephy-window.c: (setup_window): * src/ppview-toolbar.c: (ppview_toolbar_set_window): Use gtk_action_group_set_translation_domain() to restore menu and popup i18n. --- src/bookmarks/ephy-bookmarks-editor.c | 1 + src/ephy-history-window.c | 1 + src/ephy-window.c | 2 ++ src/ppview-toolbar.c | 1 + 4 files changed, 5 insertions(+) (limited to 'src') diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c index 039b6aff1..67eb6d491 100644 --- a/src/bookmarks/ephy-bookmarks-editor.c +++ b/src/bookmarks/ephy-bookmarks-editor.c @@ -1225,6 +1225,7 @@ ephy_bookmarks_editor_construct (EphyBookmarksEditor *editor) ui_merge = gtk_ui_manager_new (); g_signal_connect (ui_merge, "add_widget", G_CALLBACK (add_widget), editor); action_group = gtk_action_group_new ("PopupActions"); + gtk_action_group_set_translation_domain (action_group, NULL); gtk_action_group_add_actions (action_group, ephy_bookmark_popup_entries, ephy_bookmark_popup_n_entries, editor); gtk_ui_manager_insert_action_group (ui_merge, diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c index 711a93332..7df319818 100644 --- a/src/ephy-history-window.c +++ b/src/ephy-history-window.c @@ -963,6 +963,7 @@ ephy_history_window_construct (EphyHistoryWindow *editor) gtk_window_add_accel_group (GTK_WINDOW (editor), gtk_ui_manager_get_accel_group (ui_merge)); action_group = gtk_action_group_new ("PopupActions"); + gtk_action_group_set_translation_domain (action_group, NULL); gtk_action_group_add_actions (action_group, ephy_history_ui_entries, ephy_history_ui_n_entries, editor); gtk_ui_manager_insert_action_group (ui_merge, diff --git a/src/ephy-window.c b/src/ephy-window.c index 661e695c3..29e6cdd9c 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -602,6 +602,7 @@ setup_window (EphyWindow *window) merge = gtk_ui_manager_new (); action_group = gtk_action_group_new ("WindowActions"); + gtk_action_group_set_translation_domain (action_group, NULL); gtk_action_group_add_actions (action_group, ephy_menu_entries, ephy_menu_n_entries, window); gtk_ui_manager_insert_action_group (merge, action_group, 0); @@ -627,6 +628,7 @@ setup_window (EphyWindow *window) g_object_set (action, "is_important", TRUE, NULL); action_group = gtk_action_group_new ("PopupsActions"); + gtk_action_group_set_translation_domain (action_group, NULL); gtk_action_group_add_actions (action_group, ephy_popups_entries, ephy_popups_n_entries, window); gtk_ui_manager_insert_action_group (merge, action_group, 0); diff --git a/src/ppview-toolbar.c b/src/ppview-toolbar.c index 1f7c2c224..a9e303afd 100755 --- a/src/ppview-toolbar.c +++ b/src/ppview-toolbar.c @@ -244,6 +244,7 @@ ppview_toolbar_set_window (PPViewToolbar *t, EphyWindow *window) t->priv->original_mask = ephy_window_get_chrome (window); t->priv->action_group = gtk_action_group_new ("PPViewActions"); + gtk_action_group_set_translation_domain (t->priv->action_group, NULL); gtk_action_group_add_actions (t->priv->action_group, entries, n_entries, t); gtk_ui_manager_insert_action_group (t->priv->ui_merge, -- cgit v1.2.3