summaryrefslogtreecommitdiff
path: root/0001-window-Undo-runtime-gtk_window_present-deprecation-w.patch
diff options
context:
space:
mode:
Diffstat (limited to '0001-window-Undo-runtime-gtk_window_present-deprecation-w.patch')
-rw-r--r--0001-window-Undo-runtime-gtk_window_present-deprecation-w.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/0001-window-Undo-runtime-gtk_window_present-deprecation-w.patch b/0001-window-Undo-runtime-gtk_window_present-deprecation-w.patch
new file mode 100644
index 0000000..a00e822
--- /dev/null
+++ b/0001-window-Undo-runtime-gtk_window_present-deprecation-w.patch
@@ -0,0 +1,42 @@
+From a8bbcf33ecf162528e9b48e609f1131a8e52f072 Mon Sep 17 00:00:00 2001
+From: Kalev Lember <klember@redhat.com>
+Date: Tue, 12 Mar 2019 21:50:04 +0100
+Subject: [PATCH] window: Undo runtime gtk_window_present deprecation warnings
+
+Now that gtk_window_present is no longer deprecated, remove the runtime
+warnings as well.
+---
+ gtk/gtkwindow.c | 10 ----------
+ 1 file changed, 10 deletions(-)
+
+diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
+index b65e0fe8c8..874b053d57 100644
+--- a/gtk/gtkwindow.c
++++ b/gtk/gtkwindow.c
+@@ -10527,7 +10527,6 @@ gtk_window_present_with_time (GtkWindow *window,
+ GtkWindowPrivate *priv;
+ GtkWidget *widget;
+ GdkWindow *gdk_window;
+- static gsize warned_current_time = FALSE;
+
+ g_return_if_fail (GTK_IS_WINDOW (window));
+
+@@ -10545,15 +10544,6 @@ gtk_window_present_with_time (GtkWindow *window,
+ /* Translate a timestamp of GDK_CURRENT_TIME appropriately */
+ if (timestamp == GDK_CURRENT_TIME)
+ {
+- if (g_once_init_enter (&warned_current_time))
+- {
+- gboolean warned = TRUE;
+- g_warning ("gtk_window_present_with_time() should not be called with 0, or "
+- "GDK_CURRENT_TIME as a timestamp, the timestamp should instead be "
+- "gathered at the time the user initiated the request for the window "
+- "to be shown");
+- g_once_init_leave (&warned_current_time, warned);
+- }
+ #ifdef GDK_WINDOWING_X11
+ if (GDK_IS_X11_WINDOW(gdk_window))
+ {
+--
+2.21.0
+
bgstack15