diff options
author | Marco 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) |
commit | f7d8183b26d763d0501f40720aed357d5aa35029 (patch) | |
tree | 9cbfe5089ea4377b3eb3a4919d983dee80a3816e /shell/ev-page-action.c | |
parent | 11368f9b50db86ce4f2ae0b549fb575a19af2a74 (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.c | 14 |
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) { |