diff options
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); } } |