diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2008-03-31 11:32:38 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@src.gnome.org> | 2008-03-31 11:32:38 (GMT) |
commit | 6651a58fd33c8256b002ed05946811293a757e71 (patch) | |
tree | f33b437dec1f58f5578e2486e399474f7e3f7308 /shell/ev-page-action.c | |
parent | 3937a33dfda49381aae84fe3f37f08f2dd9244c0 (diff) |
Only grab the focus for the current visible proxy widget. Fixes bug
2008-03-31 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-page-action.c: (ev_page_action_grab_focus):
Only grab the focus for the current visible proxy widget. Fixes
bug #521224.
svn path=/trunk/; revision=2984
Diffstat (limited to 'shell/ev-page-action.c')
-rw-r--r-- | shell/ev-page-action.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/ev-page-action.c b/shell/ev-page-action.c index aab86ec..39ce3ec 100644 --- a/shell/ev-page-action.c +++ b/shell/ev-page-action.c @@ -361,7 +361,9 @@ ev_page_action_grab_focus (EvPageAction *page_action) EvPageActionWidget *proxy; proxy = EV_PAGE_ACTION_WIDGET (proxies->data); - gtk_widget_grab_focus (proxy->entry); + + if (GTK_WIDGET_MAPPED (GTK_WIDGET (proxy))) + gtk_widget_grab_focus (proxy->entry); } } |