From: Carlos Garcia Campos Date: Mon, 31 Mar 2008 11:32:38 +0000 (+0000) Subject: Only grab the focus for the current visible proxy widget. Fixes bug X-Git-Tag: EVINCE_2_22_1~8 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=6651a58fd33c8256b002ed05946811293a757e71;p=evince.git Only grab the focus for the current visible proxy widget. Fixes bug 2008-03-31 Carlos Garcia Campos * 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 --- diff --git a/ChangeLog b/ChangeLog index 001f6f9c..9c45ab50 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-03-31 Carlos Garcia Campos + + * 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 * shell/ev-window.c: (launch_external_uri): diff --git a/shell/ev-page-action.c b/shell/ev-page-action.c index aab86ec7..39ce3ec5 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); } }