Commit 03de0c34 authored by Benjamin Otte's avatar Benjamin Otte

widget: Deprecate gtk_widget_is_composited()

Also GtkWidget::composited-changed is gone.
parent b3e3946b
...@@ -2280,11 +2280,13 @@ G_GNUC_END_IGNORE_DEPRECATIONS ...@@ -2280,11 +2280,13 @@ G_GNUC_END_IGNORE_DEPRECATIONS
* The ::composited-changed signal is emitted when the composited * The ::composited-changed signal is emitted when the composited
* status of @widgets screen changes. * status of @widgets screen changes.
* See gdk_screen_is_composited(). * See gdk_screen_is_composited().
*
* Deprecated: 3.22: Use GdkScreen::composited-changed instead.
*/ */
widget_signals[COMPOSITED_CHANGED] = widget_signals[COMPOSITED_CHANGED] =
g_signal_new (I_("composited-changed"), g_signal_new (I_("composited-changed"),
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION | G_SIGNAL_DEPRECATED,
G_STRUCT_OFFSET (GtkWidgetClass, composited_changed), G_STRUCT_OFFSET (GtkWidgetClass, composited_changed),
NULL, NULL, NULL, NULL,
NULL, NULL,
...@@ -9983,6 +9985,8 @@ gtk_widget_propagate_screen_changed_recurse (GtkWidget *widget, ...@@ -9983,6 +9985,8 @@ gtk_widget_propagate_screen_changed_recurse (GtkWidget *widget,
* channel being drawn correctly. * channel being drawn correctly.
* *
* Since: 2.10 * Since: 2.10
*
* Deprecated: 3.22: Use gdk_screen_is_composited() instead.
*/ */
gboolean gboolean
gtk_widget_is_composited (GtkWidget *widget) gtk_widget_is_composited (GtkWidget *widget)
......
...@@ -1243,7 +1243,7 @@ GDK_AVAILABLE_IN_ALL ...@@ -1243,7 +1243,7 @@ GDK_AVAILABLE_IN_ALL
GtkTextDirection gtk_widget_get_default_direction (void); GtkTextDirection gtk_widget_get_default_direction (void);
/* Compositing manager functionality */ /* Compositing manager functionality */
GDK_AVAILABLE_IN_ALL GDK_DEPRECATED_IN_3_22_FOR(gdk_screen_is_composited)
gboolean gtk_widget_is_composited (GtkWidget *widget); gboolean gtk_widget_is_composited (GtkWidget *widget);
/* Counterpart to gdk_window_shape_combine_region. /* Counterpart to gdk_window_shape_combine_region.
......
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