From: José Aliste Date: Fri, 24 Sep 2010 18:10:33 +0000 (-0400) Subject: [shell] Add timestamp parameter to SyncView. X-Git-Tag: EVINCE_2_91_0~1 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=a2b36d8928c30f93f74869b294e72d2484422646;p=evince.git [shell] Add timestamp parameter to SyncView. SyncView is called after user interaction, so it needs timestamp parameter to avoid stealing focus. --- diff --git a/shell/ev-window.c b/shell/ev-window.c index 01c5e9f7..b7c4bd2d 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -6704,10 +6704,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 ("()")); @@ -6719,6 +6720,7 @@ static const char introspection_xml[] = "" "" "" + "" "" "" ""