[gtk+/gtk-3-22] widget: Deprecate gtk_widget_is_composited()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] widget: Deprecate gtk_widget_is_composited()
- Date: Sat, 5 Nov 2016 02:57:11 +0000 (UTC)
commit 03de0c3444ac3cf5e9491661fdb7f00df8f9777a
Author: Benjamin Otte <otte redhat com>
Date: Sat Oct 29 04:43:30 2016 +0200
widget: Deprecate gtk_widget_is_composited()
Also GtkWidget::composited-changed is gone.
gtk/gtkwidget.c | 6 +++++-
gtk/gtkwidget.h | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 206daa6..f91f07b 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -2280,11 +2280,13 @@ G_GNUC_END_IGNORE_DEPRECATIONS
* The ::composited-changed signal is emitted when the composited
* status of @widgets screen changes.
* See gdk_screen_is_composited().
+ *
+ * Deprecated: 3.22: Use GdkScreen::composited-changed instead.
*/
widget_signals[COMPOSITED_CHANGED] =
g_signal_new (I_("composited-changed"),
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),
NULL, NULL,
NULL,
@@ -9983,6 +9985,8 @@ gtk_widget_propagate_screen_changed_recurse (GtkWidget *widget,
* channel being drawn correctly.
*
* Since: 2.10
+ *
+ * Deprecated: 3.22: Use gdk_screen_is_composited() instead.
*/
gboolean
gtk_widget_is_composited (GtkWidget *widget)
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index c550dda..04fd4ab 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -1243,7 +1243,7 @@ GDK_AVAILABLE_IN_ALL
GtkTextDirection gtk_widget_get_default_direction (void);
/* Compositing manager functionality */
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_22_FOR(gdk_screen_is_composited)
gboolean gtk_widget_is_composited (GtkWidget *widget);
/* Counterpart to gdk_window_shape_combine_region.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]