From 1451553761d0cff4b5f412fcb419602118d1dc28 Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Sat, 17 Mar 2012 09:20:17 -0700 Subject: 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. --- src/evbp.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/evbp.c b/src/evbp.c index 3de5303..4077c7a 100644 --- a/src/evbp.c +++ b/src/evbp.c @@ -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; -- cgit v1.2.3