[evince] [shell] Add timestamp parameter to SyncView.
- From: Jose Aliste <jaliste src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] [shell] Add timestamp parameter to SyncView.
- Date: Mon, 4 Oct 2010 16:20:56 +0000 (UTC)
commit a2b36d8928c30f93f74869b294e72d2484422646
Author: José Aliste <jaliste src gnome org>
Date: Fri Sep 24 14:10:33 2010 -0400
[shell] Add timestamp parameter to SyncView.
SyncView is called after user interaction, so it needs timestamp parameter
to avoid stealing focus.
shell/ev-window.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 01c5e9f..b7c4bd2 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[] =
"<method name='SyncView'>"
"<arg type='s' name='source_file' direction='in'/>"
"<arg type='(ii)' name='source_point' direction='in'/>"
+ "<arg type='u' name='timestamp' direction='in'/>"
"</method>"
"<signal name='SyncSource'>"
"<arg type='s' name='source_file' direction='out'/>"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]