summaryrefslogtreecommitdiff
path: root/shell/ev-window.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-09 15:08:34 +0100
committerinfirit <[email protected]>2014-12-09 23:02:28 +0100
commit559014c4a9ee740055c9cf838347acdaf69ed570 (patch)
treeb1d7d53d493e04403eb93245b85bb7d9fff05ddc /shell/ev-window.c
parenteaa32a34c6a0cc117e77e955a5c04d892d48c527 (diff)
downloadatril-559014c4a9ee740055c9cf838347acdaf69ed570.tar.bz2
atril-559014c4a9ee740055c9cf838347acdaf69ed570.tar.xz
add timestamp to SyncSource DBus signal
Taken from evince commit: a57c4df4be3d2a2acb3d2b8a205cf7b9b49a816d From: José Aliste <[email protected]> Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=632313
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 3d4f5c84..b5d87e28 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -6948,6 +6948,7 @@ ev_window_sync_source (EvWindow *window,
{
GDBusConnection *connection;
GError *error = NULL;
+ guint32 timestamp;
if (window->priv->dbus_object_id <= 0)
return;
@@ -6956,15 +6957,17 @@ ev_window_sync_source (EvWindow *window,
if (!connection)
return;
+ timestamp = gtk_get_current_event_time ();
g_dbus_connection_emit_signal (connection,
NULL,
window->priv->dbus_object_path,
EV_WINDOW_DBUS_INTERFACE,
"SyncSource",
- g_variant_new ("(s(ii))",
+ g_variant_new ("(s(ii)u)",
link->filename,
link->line,
- link->col),
+ link->col,
+ timestamp),
&error);
if (error) {
g_printerr ("Failed to emit DBus signal SyncSource: %s\n",
@@ -7076,6 +7079,7 @@ static const char introspection_xml[] =
"<signal name='SyncSource'>"
"<arg type='s' name='source_file' direction='out'/>"
"<arg type='(ii)' name='source_point' direction='out'/>"
+ "<arg type='u' name='timestamp' direction='out'/>"
"</signal>"
"<signal name='Closed'/>"
"<signal name='DocumentLoaded'>"