]> Pileus Git - ~andy/gtk/commitdiff
Deprecate widget flag: GTK_WIDGET_PARENT_SENSITIVE
authorJavier Jardón <jjardon@gnome.org>
Sat, 27 Feb 2010 03:10:17 +0000 (04:10 +0100)
committerJavier Jardón <jjardon@gnome.org>
Mon, 1 Mar 2010 06:57:27 +0000 (07:57 +0100)
Use gtk_widget_get_sensitive() on the parent widget instead.

https://bugzilla.gnome.org/show_bug.cgi?id=69872

gtk/gtkwidget.h

index 0a22a98c5a8c858641ff56b5052208324ebc0974..6e0a96c598fe10fe70fa30f3d3ae06a4e2e12b97 100644 (file)
@@ -267,13 +267,17 @@ typedef enum
 #define GTK_WIDGET_SENSITIVE(wid)        ((GTK_WIDGET_FLAGS (wid) & GTK_SENSITIVE) != 0)
 #endif
 
+#ifndef GTK_DISABLE_DEPRECATED
 /**
  * GTK_WIDGET_PARENT_SENSITIVE:
  * @wid: a #GtkWidget.
  *
  * Evaluates to %TRUE if the #GTK_PARENT_SENSITIVE flag has be set on the widget.
+ *
+ * Deprecated: 2.20: Use gtk_widget_get_sensitive() on the parent widget instead.
  */
 #define GTK_WIDGET_PARENT_SENSITIVE(wid)  ((GTK_WIDGET_FLAGS (wid) & GTK_PARENT_SENSITIVE) != 0)
+#endif
 
 #ifndef GTK_DISABLE_DEPRECATED
 /**