X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=inline;f=shell%2Fev-page-action.c;h=39ce3ec560e21bf411d931997dd32517d0ac1f14;hb=f343927df4325959193353c52cff1ea4b20b2286;hp=aab86ec7dbede280cd73e765e2fdb7c2e3ab1b34;hpb=bc1469dfae8b36ed73052b1cbcdaed3c2fcaf9a2;p=evince.git 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); } }