summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-03-25 19:46:01 +0100
committerJavier Jardón <jjardon@gnome.org>2010-04-27 02:45:18 +0200
commitd3d4cf0e841df6573a41ef4ebb609ff7b81dbb0f (patch)
tree5a0f411314b713bf5bf9934480eee2ca008461e8 /gtk
parent5eaff47e85e5a6cb8bd370ce1cccf5fad5cba5fe (diff)
downloadgdk-pixbuf-d3d4cf0e841df6573a41ef4ebb609ff7b81dbb0f.tar.gz
Deprecate GTK_WIDGET_*SET_FLAGS() macro
The macro GTK_WIDGET_SET_FLAGS(w, GTK_VISIBLE) should still be fixed internally. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=69872
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkwidget.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index f609873eb..0b2d84bcc 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -445,8 +445,17 @@ typedef enum
* @flag: the flags to set.
*
* Turns on certain widget flags.
+ *
+ * Deprecated: 2.22: Use the proper function instead: gtk_widget_set_app_paintable(),
+ * gtk_widget_set_can_default(), gtk_widget_set_can_focus(),
+ * gtk_widget_set_double_buffered(), gtk_widget_set_has_window(),
+ * gtk_widget_set_mapped(), gtk_widget_set_no_show_all(),
+ * gtk_widget_set_realized(), gtk_widget_set_receives_default(),
+ * gtk_widget_set_sensitive() or gtk_widget_set_visible().
+ *
*/
#define GTK_WIDGET_SET_FLAGS(wid,flag) G_STMT_START{ (GTK_WIDGET_FLAGS (wid) |= (flag)); }G_STMT_END
+/* FIXME: Deprecating GTK_WIDGET_SET_FLAGS requires fixing GTK internals. */
/**
* GTK_WIDGET_UNSET_FLAGS:
@@ -454,8 +463,11 @@ typedef enum
* @flag: the flags to unset.
*
* Turns off certain widget flags.
+ *
+ * Deprecated: 2.22: Use the proper function instead. See GTK_WIDGET_SET_FLAGS().
*/
#define GTK_WIDGET_UNSET_FLAGS(wid,flag) G_STMT_START{ (GTK_WIDGET_FLAGS (wid) &= ~(flag)); }G_STMT_END
+/* FIXME: Deprecating GTK_WIDGET_UNSET_FLAGS requires fixing GTK internals. */
#define GTK_TYPE_REQUISITION (gtk_requisition_get_type ())