qulogic/libgnt

Document GntWidgetFlags as deprecated.

2019-04-13, Elliott Sales de Andrade
f7137b1d72d5
Parents 2c8e56d7ec4e
Children d3e290421686
Document GntWidgetFlags as deprecated.
  • +53 -0
    gntwidget.h
  • --- a/gntwidget.h Sat Apr 13 03:02:33 2019 -0400
    +++ b/gntwidget.h Sat Apr 13 03:11:36 2019 -0400
    @@ -41,15 +41,67 @@
    #define GNT_IS_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_WIDGET))
    #define GNT_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_WIDGET, GntWidgetClass))
    +#ifndef LIBGNT_DISABLE_DEPRECATED
    +/**
    + * GNT_WIDGET_FLAGS:
    + * Deprecated: 2.14.0: See #GntWidgetFlags for individual accessors instead.
    + */
    #define GNT_WIDGET_FLAGS(obj) (GNT_WIDGET(obj)->priv.flags)
    +/**
    + * GNT_WIDGET_SET_FLAGS:
    + * Deprecated: 2.14.0: See #GntWidgetFlags for individual accessors instead.
    + */
    #define GNT_WIDGET_SET_FLAGS(obj, flags) (GNT_WIDGET_FLAGS(obj) |= flags)
    +/**
    + * GNT_WIDGET_UNSET_FLAGS:
    + * Deprecated: 2.14.0: See #GntWidgetFlags for individual accessors instead.
    + */
    #define GNT_WIDGET_UNSET_FLAGS(obj, flags) (GNT_WIDGET_FLAGS(obj) &= ~(flags))
    +/**
    + * GNT_WIDGET_IS_FLAG_SET:
    + * Deprecated: 2.14.0: See #GntWidgetFlags for individual accessors instead.
    + */
    #define GNT_WIDGET_IS_FLAG_SET(obj, flags) (GNT_WIDGET_FLAGS(obj) & (flags))
    +#endif
    typedef struct _GntWidget GntWidget;
    typedef struct _GntWidgetPriv GntWidgetPriv;
    typedef struct _GntWidgetClass GntWidgetClass;
    +/**
    + * GntWidgetFlags:
    + * @GNT_WIDGET_DESTROYING: Deprecated. Use gnt_widget_in_destruction() instead.
    + * You may not set this flag directly.
    + * @GNT_WIDGET_CAN_TAKE_FOCUS: Deprecated. Use gnt_widget_set_take_focus() and
    + * gnt_widget_get_take_focus() instead.
    + * @GNT_WIDGET_MAPPED: Deprecated. Use gnt_widget_set_mapped() and
    + * gnt_widget_get_mapped() instead.
    + * @GNT_WIDGET_NO_BORDER: Deprecated. Use gnt_widget_set_has_border() and
    + * gnt_widget_get_has_border() instead.
    + * @GNT_WIDGET_NO_SHADOW: Deprecated. Use gnt_widget_set_has_shadow() and
    + * gnt_widget_get_has_shadow() instead.
    + * @GNT_WIDGET_HAS_FOCUS: Deprecated. Use gnt_widget_set_has_focus() and
    + * gnt_widget_get_has_focus() instead.
    + * @GNT_WIDGET_DRAWING: Deprecated. Use gnt_widget_set_drawing() and
    + * gnt_widget_get_drawing() instead.
    + * @GNT_WIDGET_URGENT: Deprecated. Use gnt_widget_set_is_urgent() and
    + * gnt_widget_get_is_urgent() instead.
    + * @GNT_WIDGET_GROW_X: Deprecated. Use gnt_widget_set_grow_x() and
    + * gnt_widget_get_grow_x() instead.
    + * @GNT_WIDGET_GROW_Y: Deprecated. Use gnt_widget_set_grow_y() and
    + * gnt_widget_get_grow_y() instead.
    + * @GNT_WIDGET_INVISIBLE: Deprecated. Use gnt_widget_set_visible() and
    + * gnt_widget_get_visible() instead.
    + * @GNT_WIDGET_TRANSIENT: Deprecated. Use gnt_widget_set_transient() and
    + * gnt_widget_get_transient() instead.
    + * @GNT_WIDGET_DISABLE_ACTIONS: Deprecated. Use
    + * gnt_widget_set_disable_actions() and
    + * gnt_widget_get_disable_actions() instead.
    + *
    + * Deprecated: 2.14.0: Use the individual accessor functions documented below
    + * instead.
    + */
    +#ifndef LIBGNT_DISABLE_DEPRECATED
    typedef enum
    {
    GNT_WIDGET_DESTROYING = 1 << 0,
    @@ -68,6 +120,7 @@
    GNT_WIDGET_TRANSIENT = 1 << 11,
    GNT_WIDGET_DISABLE_ACTIONS = 1 << 12,
    } GntWidgetFlags;
    +#endif
    /* XXX: This will probably move elsewhere */
    typedef enum