diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2012-03-17 09:20:17 -0700 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2012-03-17 09:20:17 -0700 |
commit | 1451553761d0cff4b5f412fcb419602118d1dc28 (patch) | |
tree | 6a7eb95aa97bc2e2cfb1acccb768a3f668972f9c /src | |
parent | 0819152d4d3f257e8406d0cace54f49da354fc0f (diff) |
Drop explicit grab focus on EvView
It turns out that the reason the toolbar was getting focus first for
my previewer and not the real evince-previewer was that the toolbar
buttons were set as sensitive when the widget was shown. If instead
the document is loaded after the window is shown like in both the
plugin and the real previewer, then the initial focus will be on the
scrolled window as desired.
Diffstat (limited to 'src')
-rw-r--r-- | src/evbp.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -183,7 +183,6 @@ evbp_set_window(NPP instance, NPWindow *window) g_debug("plugging into window id %u", id); plug = gtk_plug_new(id); gtk_container_add(GTK_CONTAINER(plug), priv->viewer); - gtk_widget_grab_focus(EVBP_VIEWER(priv->viewer)->view); gtk_widget_show_all(plug); return NPERR_NO_ERROR; |