From b7918f40bd6a2c6b63bca6d4e095194160c08a5b Mon Sep 17 00:00:00 2001 From: infirit Date: Tue, 9 Dec 2014 12:26:05 +0100 Subject: [shell] Add timestamp parameter to SyncView. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SyncView is called after user interaction, so it needs timestamp parameter to avoid stealing focus. Taken from evince commit: a2b36d8928c30f93f74869b294e72d2484422646 From: José Aliste --- shell/ev-window.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/shell/ev-window.c b/shell/ev-window.c index f4600d92..3e8e096a 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -7055,10 +7055,11 @@ method_call_cb (GDBusConnection *connection, if (window->priv->document && ev_document_has_synctex (window->priv->document)) { EvSourceLink link; + guint32 timestamp; - g_variant_get (parameters, "(&s(ii))", &link.filename, &link.line, &link.col); + g_variant_get (parameters, "(&s(ii)u)", &link.filename, &link.line, &link.col, ×tamp); ev_view_highlight_forward_search (EV_VIEW (window->priv->view), &link); - gtk_window_present (GTK_WINDOW (window)); + gtk_window_present_with_time (GTK_WINDOW (window), timestamp); } g_dbus_method_invocation_return_value (invocation, g_variant_new ("()")); @@ -7070,6 +7071,7 @@ static const char introspection_xml[] = "" "" "" + "" "" "" "" -- cgit v1.2.1