Commit cd495a26 authored by Matthias Clasen's avatar Matthias Clasen

Deprecate gdk_window_set_debug_updates

This is gone in GTK+ 4, so lets deprecate it.
parent a372f554
...@@ -4794,7 +4794,8 @@ gdk_window_thaw_toplevel_updates (GdkWindow *window) ...@@ -4794,7 +4794,8 @@ gdk_window_thaw_toplevel_updates (GdkWindow *window)
* yourself, though you might want to use this function to enable * yourself, though you might want to use this function to enable
* updates sometime after application startup time. * updates sometime after application startup time.
* *
**/ * Deprecated: 3.22
*/
void void
gdk_window_set_debug_updates (gboolean setting) gdk_window_set_debug_updates (gboolean setting)
{ {
......
...@@ -1061,7 +1061,7 @@ void gdk_window_process_updates (GdkWindow *window, ...@@ -1061,7 +1061,7 @@ void gdk_window_process_updates (GdkWindow *window,
gboolean update_children); gboolean update_children);
/* Enable/disable flicker, so you can tell if your code is inefficient. */ /* Enable/disable flicker, so you can tell if your code is inefficient. */
GDK_AVAILABLE_IN_ALL GDK_DEPRECATED_IN_3_22
void gdk_window_set_debug_updates (gboolean setting); void gdk_window_set_debug_updates (gboolean setting);
GDK_AVAILABLE_IN_ALL GDK_AVAILABLE_IN_ALL
......
...@@ -736,8 +736,10 @@ do_post_parse_initialization (int *argc, ...@@ -736,8 +736,10 @@ do_post_parse_initialization (int *argc,
g_log_set_always_fatal (fatal_mask); g_log_set_always_fatal (fatal_mask);
} }
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
if (debug_flags[0].flags & GTK_DEBUG_UPDATES) if (debug_flags[0].flags & GTK_DEBUG_UPDATES)
gdk_window_set_debug_updates (TRUE); gdk_window_set_debug_updates (TRUE);
G_GNUC_END_IGNORE_DEPRECATIONS
gtk_widget_set_default_direction (gtk_get_locale_direction ()); gtk_widget_set_default_direction (gtk_get_locale_direction ());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment