[gnome-photos/gnome-3-24] application: Try to use a better event timestamp



commit 4005f1c1b0c70200a1a6278051c72f26bd3f7671
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Mar 24 18:34:02 2017 +0100

    application: Try to use a better event timestamp
    
    This keeps the code in sync with gnome-documents.

 src/photos-application.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index dcf0a37..31da5d7 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -257,9 +257,11 @@ static void
 photos_application_help (PhotosApplication *self, GVariant *parameter)
 {
   GtkWindow *parent;
+  guint32 time;
 
   parent = gtk_application_get_active_window (GTK_APPLICATION (self));
-  gtk_show_uri_on_window (parent, "help:gnome-photos", GDK_CURRENT_TIME, NULL);
+  time = gtk_get_current_event_time ();
+  gtk_show_uri_on_window (parent, "help:gnome-photos", time, NULL);
 }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]