qulogic/libgnt

Deprecate all *Priv structs.
release-2.x.y
2019-05-14, Elliott Sales de Andrade
ee2ed7d0e332
Parents bacf9b9fff30
Children f8b0df9a1ddf
Deprecate all *Priv structs.
--- a/gnt-skel.h Mon May 13 16:01:04 2019 +0000
+++ b/gnt-skel.h Tue May 14 00:26:21 2019 -0400
@@ -42,8 +42,15 @@
#define GNT_SKEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_SKEL, GntSkelClass))
typedef struct _GntSkel GntSkel;
-typedef struct _GntSkelPriv GntSkelPriv;
typedef struct _GntSkelClass GntSkelClass;
+#ifndef GNT_DISABLE_DEPRECATED
+/**
+ * GntSkelPriv:
+ *
+ * Deprecated: 2.14.0: This is an internal implementation detail.
+ */
+typedef struct _GntSkelPriv GntSkelPriv;
+#endif
struct _GntSkel
{
--- a/gntbutton.h Mon May 13 16:01:04 2019 +0000
+++ b/gntbutton.h Tue May 14 00:26:21 2019 -0400
@@ -43,12 +43,19 @@
#define GNT_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_BUTTON, GntButtonClass))
typedef struct _GntButton GntButton;
-typedef struct _GntButtonPriv GntButtonPriv;
typedef struct _GntButtonClass GntButtonClass;
+#ifndef GNT_DISABLE_DEPRECATED
+/**
+ * GntButtonPriv:
+ *
+ * Deprecated: 2.14.0: This is an internal implementation detail.
+ */
+typedef struct _GntButtonPriv GntButtonPriv;
+#endif
struct _GntButtonPriv
{
- char *text;
+ char *GNTSEAL(text);
};
/**
--- a/gntcheckbox.h Mon May 13 16:01:04 2019 +0000
+++ b/gntcheckbox.h Tue May 14 00:26:21 2019 -0400
@@ -47,8 +47,15 @@
#define GNT_CHECK_BOX_UNSET_FLAGS(obj, flags) (GNT_CHECK_BOX_FLAGS(obj) &= ~(flags))
typedef struct _GntCheckBox GntCheckBox;
-typedef struct _GntCheckBoxPriv GntCheckBoxPriv;
typedef struct _GntCheckBoxClass GntCheckBoxClass;
+#ifndef GNT_DISABLE_DEPRECATED
+/**
+ * GntCheckBoxPriv:
+ *
+ * Deprecated: 2.14.0: This is an internal implementation detail.
+ */
+typedef struct _GntCheckBoxPriv GntCheckBoxPriv;
+#endif
/**
* GntCheckBox:
--- a/gntcombobox.h Mon May 13 16:01:04 2019 +0000
+++ b/gntcombobox.h Tue May 14 00:26:21 2019 -0400
@@ -46,8 +46,15 @@
#define GNT_COMBO_BOX_UNSET_FLAGS(obj, flags) (GNT_COMBO_BOX_FLAGS(obj) &= ~(flags))
typedef struct _GntComboBox GntComboBox;
-typedef struct _GntComboBoxPriv GntComboBoxPriv;
typedef struct _GntComboBoxClass GntComboBoxClass;
+#ifndef GNT_DISABLE_DEPRECATED
+/**
+ * GntComboBoxPriv:
+ *
+ * Deprecated: 2.14.0: This is an internal implementation detail.
+ */
+typedef struct _GntComboBoxPriv GntComboBoxPriv;
+#endif
/**
* GntComboBox:
--- a/gntentry.h Mon May 13 16:01:04 2019 +0000
+++ b/gntentry.h Tue May 14 00:26:21 2019 -0400
@@ -48,10 +48,17 @@
#define ENTRY_CHAR '_' /* The character to use to fill in the blank places */
typedef struct _GntEntry GntEntry;
-typedef struct _GntEntryPriv GntEntryPriv;
typedef struct _GntEntryClass GntEntryClass;
typedef struct _GntEntryKillRing GntEntryKillRing;
typedef struct _GntEntrySearch GntEntrySearch;
+#ifndef GNT_DISABLE_DEPRECATED
+/**
+ * GntEntryPriv:
+ *
+ * Deprecated: 2.14.0: This is an internal implementation detail.
+ */
+typedef struct _GntEntryPriv GntEntryPriv;
+#endif
typedef enum
{
--- a/gntfilesel.h Mon May 13 16:01:04 2019 +0000
+++ b/gntfilesel.h Tue May 14 00:26:21 2019 -0400
@@ -46,9 +46,16 @@
#define GNT_FILE_SEL_UNSET_FLAGS(obj, flags) (GNT_FILE_SEL_FLAGS(obj) &= ~(flags))
typedef struct _GntFileSel GntFileSel;
-typedef struct _GntFileSelPriv GntFileSelPriv;
typedef struct _GntFileSelClass GntFileSelClass;
typedef struct _GntFile GntFile;
+#ifndef GNT_DISABLE_DEPRECATED
+/**
+ * GntFileSelPriv:
+ *
+ * Deprecated: 2.14.0: This is an internal implementation detail.
+ */
+typedef struct _GntFileSelPriv GntFileSelPriv;
+#endif
/**
* GntFileSel:
--- a/gntline.h Mon May 13 16:01:04 2019 +0000
+++ b/gntline.h Tue May 14 00:26:21 2019 -0400
@@ -46,8 +46,15 @@
#define GNT_LINE_UNSET_FLAGS(obj, flags) (GNT_LINE_FLAGS(obj) &= ~(flags))
typedef struct _GntLine GntLine;
-typedef struct _GntLinePriv GntLinePriv;
typedef struct _GntLineClass GntLineClass;
+#ifndef GNT_DISABLE_DEPRECATED
+/**
+ * GntLinePriv:
+ *
+ * Deprecated: 2.14.0: This is an internal implementation detail.
+ */
+typedef struct _GntLinePriv GntLinePriv;
+#endif
/**
* GntLine:
--- a/gntmenu.h Mon May 13 16:01:04 2019 +0000
+++ b/gntmenu.h Tue May 14 00:26:21 2019 -0400
@@ -47,8 +47,15 @@
#define GNT_MENU_UNSET_FLAGS(obj, flags) (GNT_MENU_FLAGS(obj) &= ~(flags))
typedef struct _GntMenu GntMenu;
-typedef struct _GntMenuPriv GntMenuPriv;
typedef struct _GntMenuClass GntMenuClass;
+#ifndef GNT_DISABLE_DEPRECATED
+/**
+ * GntMenuPriv:
+ *
+ * Deprecated: 2.14.0: This is an internal implementation detail.
+ */
+typedef struct _GntMenuPriv GntMenuPriv;
+#endif
#include "gntmenuitem.h"
--- a/gntmenuitem.h Mon May 13 16:01:04 2019 +0000
+++ b/gntmenuitem.h Tue May 14 00:26:21 2019 -0400
@@ -52,19 +52,22 @@
#include "gntmenu.h"
+#ifndef GNT_DISABLE_DEPRECATED
/**
* GntMenuItemPriv:
*
- * Access to any fields is deprecated. See inline comments for replacements.
+ * Deprecated: 2.14.0: This is an internal implementation detail. See inline
+ * comments for replacements.
*/
struct _GntMenuItemPriv
{
/* These will be used to determine the position of the submenu */
int GNTSEAL(x);
int GNTSEAL(y);
- char GNTSEAL(trigger);
- char *GNTSEAL(id);
+ char GNTSEAL(trigger); /* Use gnt_menuitem_get_trigger(). */
+ char *GNTSEAL(id); /* Use gnt_menuitem_get_id(). */
};
+#endif
typedef void (*GntMenuItemCallback)(GntMenuItem *item, gpointer data);
--- a/gntmenuitemcheck.h Mon May 13 16:01:04 2019 +0000
+++ b/gntmenuitemcheck.h Tue May 14 00:26:21 2019 -0400
@@ -47,8 +47,15 @@
#define GNT_MENU_ITEM_CHECK_UNSET_FLAGS(obj, flags) (GNT_MENU_ITEM_CHECK_FLAGS(obj) &= ~(flags))
typedef struct _GntMenuItemCheck GntMenuItemCheck;
-typedef struct _GntMenuItemCheckPriv GntMenuItemCheckPriv;
typedef struct _GntMenuItemCheckClass GntMenuItemCheckClass;
+#ifndef GNT_DISABLE_DEPRECATED
+/**
+ * GntMenuItemCheckPriv:
+ *
+ * Deprecated: 2.14.0: This is an internal implementation detail.
+ */
+typedef struct _GntMenuItemCheckPriv GntMenuItemCheckPriv;
+#endif
/**
* GntMenuItemCheck:
--- a/gntslider.h Mon May 13 16:01:04 2019 +0000
+++ b/gntslider.h Tue May 14 00:26:21 2019 -0400
@@ -45,8 +45,15 @@
#define GNT_SLIDER_UNSET_FLAGS(obj, flags) (GNT_SLIDER_FLAGS(obj) &= ~(flags))
typedef struct _GntSlider GntSlider;
-typedef struct _GntSliderPriv GntSliderPriv;
typedef struct _GntSliderClass GntSliderClass;
+#ifndef GNT_DISABLE_DEPRECATED
+/**
+ * GntSliderPriv:
+ *
+ * Deprecated: 2.14.0: This is an internal implementation detail.
+ */
+typedef struct _GntSliderPriv GntSliderPriv;
+#endif
/**
* GntSlider:
--- a/gnttextview.h Mon May 13 16:01:04 2019 +0000
+++ b/gnttextview.h Tue May 14 00:26:21 2019 -0400
@@ -46,8 +46,15 @@
#define GNT_TEXT_VIEW_UNSET_FLAGS(obj, flags) (GNT_TEXT_VIEW_FLAGS(obj) &= ~(flags))
typedef struct _GntTextView GntTextView;
-typedef struct _GntTextViewPriv GntTextViewPriv;
typedef struct _GntTextViewClass GntTextViewClass;
+#ifndef GNT_DISABLE_DEPRECATED
+/**
+ * GntTextViewPriv:
+ *
+ * Deprecated: 2.14.0: This is an internal implementation detail.
+ */
+typedef struct _GntTextViewPriv GntTextViewPriv;
+#endif
/**
* GntTextViewFlag:
--- a/gnttree.h Mon May 13 16:01:04 2019 +0000
+++ b/gnttree.h Tue May 14 00:26:21 2019 -0400
@@ -43,8 +43,15 @@
#define GNT_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_TREE, GntTreeClass))
typedef struct _GntTree GntTree;
-typedef struct _GntTreePriv GntTreePriv;
typedef struct _GntTreeClass GntTreeClass;
+#ifndef GNT_DISABLE_DEPRECATED
+/**
+ * GntTreePriv:
+ *
+ * Deprecated: 2.14.0: This is an internal implementation detail.
+ */
+typedef struct _GntTreePriv GntTreePriv;
+#endif
typedef struct _GntTreeRow GntTreeRow;
typedef struct _GntTreeCol GntTreeCol;
--- a/gntwindow.h Mon May 13 16:01:04 2019 +0000
+++ b/gntwindow.h Tue May 14 00:26:21 2019 -0400
@@ -47,8 +47,15 @@
#define GNT_WINDOW_UNSET_FLAGS(obj, flags) (GNT_WINDOW_FLAGS(obj) &= ~(flags))
typedef struct _GntWindow GntWindow;
-typedef struct _GntWindowPriv GntWindowPriv;
typedef struct _GntWindowClass GntWindowClass;
+#ifndef GNT_DISABLE_DEPRECATED
+/**
+ * GntWindowPriv:
+ *
+ * Deprecated: 2.14.0: This is an internal implementation detail.
+ */
+typedef struct _GntWindowPriv GntWindowPriv;
+#endif
typedef enum
{