Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-page-action.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2005-05-10 15:48:46 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-05-10 15:48:46 (GMT)
commitf7d8183b26d763d0501f40720aed357d5aa35029 (patch)
tree9cbfe5089ea4377b3eb3a4919d983dee80a3816e /shell/ev-page-action.c
parent11368f9b50db86ce4f2ae0b549fb575a19af2a74 (diff)
Add mnemonic for edit toolbar. ctrl+l focus the page entry.
2005-05-10 Marco Pesenti Gritti <mpg@redhat.com> * data/evince-ui.xml: * shell/ev-page-action.c: (ev_page_action_grab_focus): * shell/ev-page-action.h: * shell/ev-window.c: (ev_window_cmd_focus_page_selector): Add mnemonic for edit toolbar. ctrl+l focus the page entry.
Diffstat (limited to 'shell/ev-page-action.c')
-rw-r--r--shell/ev-page-action.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/shell/ev-page-action.c b/shell/ev-page-action.c
index 57b9bfc..8ba9d77 100644
--- a/shell/ev-page-action.c
+++ b/shell/ev-page-action.c
@@ -534,6 +534,20 @@ ev_page_action_set_model (EvPageAction *page_action,
NULL);
}
+void
+ev_page_action_grab_focus (EvPageAction *page_action)
+{
+ GSList *proxies;
+
+ proxies = gtk_action_get_proxies (GTK_ACTION (page_action));
+ for (; proxies != NULL; proxies = proxies->next) {
+ EvPageActionWidget *proxy;
+
+ proxy = EV_PAGE_ACTION_WIDGET (proxies->data);
+ gtk_widget_grab_focus (proxy->entry);
+ }
+}
+
static void
ev_page_action_init (EvPageAction *page)
{