[gnome-music/wip/jfelder/present-with-time] app: Use gtk_window_present for activation



commit 6d896313124c31465fa67312e11c19bbdb608c94
Author: Jean Felder <jfelder src gnome org>
Date:   Fri Jun 14 23:53:46 2019 +0200

    app: Use gtk_window_present for activation
    
    With GTK 3.24.7, gtk_window_present is properly handled in
    wayland (see https://gitlab.gnome.org/GNOME/gtk/issues/624 for the
    whole explanation). The previous workaround can be removed.

 gnomemusic/application.py | 5 +----
 meson.build               | 2 +-
 2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gnomemusic/application.py b/gnomemusic/application.py
index 3cb88ed1..c18bd7dd 100644
--- a/gnomemusic/application.py
+++ b/gnomemusic/application.py
@@ -139,7 +139,4 @@ class Application(Gtk.Application):
                 self._window.get_style_context().add_class('devel')
             MediaPlayer2Service(self)
 
-        # gtk_window_present does not work on Wayland.
-        # Use gtk_present_with_time as a workaround instead.
-        # See https://gitlab.gnome.org/GNOME/gtk/issues/624#note_10996
-        self._window.present_with_time(GLib.get_monotonic_time() / 1000)
+        self._window.present()
diff --git a/meson.build b/meson.build
index f040bc22..83b1be5c 100644
--- a/meson.build
+++ b/meson.build
@@ -38,7 +38,7 @@ PKGLIB_DIR = join_paths(get_option('prefix'), get_option('libdir'), APPLICATION_
 # Dependencies
 dependency('goa-1.0')
 dependency('gobject-introspection-1.0', version: '>= 1.35.0')
-dependency('gtk+-3.0', version: '>= 3.23.1')
+dependency('gtk+-3.0', version: '>= 3.24.7')
 dependency('libdazzle-1.0', version: '>= 3.28.0')
 dependency('libmediaart-2.0', version: '>= 1.9.1')
 dependency('libsoup-2.4')


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