diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | shell/ev-page-action.c | 4 |
2 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,10 @@ +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. + 2008-03-30 Emil Soleyman <emil@nishra.com> * shell/ev-window.c: (launch_external_uri): 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); } } |