From 6651a58fd33c8256b002ed05946811293a757e71 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Mon, 31 Mar 2008 11:32:38 +0000 Subject: 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 001f6f9..9c45ab5 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 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); } } -- cgit v0.9.1