]> www.fi.muni.cz Git - evince.git/commitdiff
add timestamp to SyncSource DBus signal.
authorJosé Aliste <jaliste@src.gnome.org>
Sun, 17 Oct 2010 15:10:06 +0000 (12:10 -0300)
committerJosé Aliste <jaliste@src.gnome.org>
Mon, 15 Nov 2010 14:29:21 +0000 (11:29 -0300)
https://bugzilla.gnome.org/show_bug.cgi?id=632313

shell/ev-window.c

index 691919bc6bdd34e83fce146747e310221ef62f05..32616818f3bdb3f6227822352029cccb5db65b8a 100644 (file)
@@ -6595,6 +6595,7 @@ ev_window_sync_source (EvWindow     *window,
 {
        GDBusConnection *connection;
        GError          *error = NULL;
+       guint32          timestamp;
 
        if (window->priv->dbus_object_id <= 0)
                return;
@@ -6603,15 +6604,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",
@@ -6722,6 +6725,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'>"