From 78283e51f65655f4a365ba2bd450aa910454fed4 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Tue, 19 Mar 2019 12:53:09 +0200 Subject: [PATCH] app: remove .present() workaround This should no longer be needed now. https://gitlab.gnome.org/GNOME/gtk/issues/1754 --- meson.build | 2 +- podcasts-gtk/src/app.rs | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/meson.build b/meson.build index 31d50bd..b5ed8c0 100644 --- a/meson.build +++ b/meson.build @@ -14,7 +14,7 @@ dependency('dbus-1') dependency('glib-2.0', version: '>= 2.56') dependency('gio-2.0', version: '>= 2.56') dependency('gdk-pixbuf-2.0') -dependency('gtk+-3.0', version: '>= 3.22') +dependency('gtk+-3.0', version: '>= 3.24.7') dependency('libhandy-0.0', version: '>= 0.0.9') dependency('gstreamer-1.0', version: '>= 1.12') diff --git a/podcasts-gtk/src/app.rs b/podcasts-gtk/src/app.rs index 0e82949..e5ba050 100644 --- a/podcasts-gtk/src/app.rs +++ b/podcasts-gtk/src/app.rs @@ -402,10 +402,7 @@ impl App { self.headerbar.switch.set_sensitive(true); self.content.switch_to_populated(); } - // https://gitlab.gnome.org/GNOME/gtk/issues/624#note_109968 - Action::RaiseWindow => self - .window - .present_with_time((glib::get_monotonic_time() / 1000) as u32), + Action::RaiseWindow => self.window.present(), }; glib::Continue(true)