Seal away all object struct members.
--- a/gnt.h Sun Apr 07 04:58:33 2019 -0400
+++ b/gnt.h Tue Apr 09 04:36:32 2019 -0400
@@ -34,6 +34,15 @@
+# if defined(GNTSEAL_ENABLE) +# define GNTSEAL(ident) _gnt_sealed__ ## ident +# define GNTSEAL(ident) ident #include "gntclipboard.h"
--- a/gntbox.h Sun Apr 07 04:58:33 2019 -0400
+++ b/gntbox.h Tue Apr 09 04:36:32 2019 -0400
@@ -57,17 +57,17 @@
- GList *list; /* List of widgets */
+ gboolean GNTSEAL(vertical); + gboolean GNTSEAL(homogeneous); + gboolean GNTSEAL(fill); + GList *GNTSEAL(list); /* List of widgets */
- int pad; /* Number of spaces to use between widgets */
- GntAlignment alignment; /* How are the widgets going to be aligned? */
+ GntWidget *GNTSEAL(active); + int GNTSEAL(pad); /* Number of spaces to use between widgets */ + GntAlignment GNTSEAL(alignment); /* How are the widgets going to be aligned? */
- GList *focus; /* List of widgets to cycle focus (only valid for parent boxes) */
+ GList *GNTSEAL(focus); /* List of widgets to cycle focus (only valid for parent boxes) */ void (*gnt_reserved1)(void);
void (*gnt_reserved2)(void);
--- a/gntbutton.h Sun Apr 07 04:58:33 2019 -0400
+++ b/gntbutton.h Tue Apr 09 04:36:32 2019 -0400
@@ -52,7 +52,7 @@
+ GntButtonPriv *GNTSEAL(priv); void (*gnt_reserved1)(void);
void (*gnt_reserved2)(void);
--- a/gntcheckbox.h Sun Apr 07 04:58:33 2019 -0400
+++ b/gntcheckbox.h Tue Apr 09 04:36:32 2019 -0400
@@ -27,8 +27,8 @@
@@ -50,7 +50,7 @@
+ gboolean GNTSEAL(checked); --- a/gntclipboard.h Sun Apr 07 04:58:33 2019 -0400
+++ b/gntclipboard.h Tue Apr 09 04:36:32 2019 -0400
@@ -31,6 +31,14 @@
+# if defined(GNTSEAL_ENABLE) +# define GNTSEAL(ident) _gnt_sealed__ ## ident +# define GNTSEAL(ident) ident #define GNT_TYPE_CLIPBOARD (gnt_clipboard_get_gtype())
#define GNT_CLIPBOARD(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_CLIPBOARD, GntClipboard))
#define GNT_CLIPBOARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_CLIPBOARD, GntClipboardClass))
@@ -44,7 +52,7 @@
+ gchar *GNTSEAL(string); struct _GntClipboardClass
--- a/gntcombobox.h Sun Apr 07 04:58:33 2019 -0400
+++ b/gntcombobox.h Tue Apr 09 04:36:32 2019 -0400
@@ -51,9 +51,9 @@
- GntWidget *dropdown; /* This is a GntTree */
+ GntWidget *GNTSEAL(dropdown); /* This is a GntTree */ - void *selected; /* Currently selected key */
+ void *GNTSEAL(selected); /* Currently selected key */ --- a/gntentry.h Sun Apr 07 04:58:33 2019 -0400
+++ b/gntentry.h Tue Apr 09 04:36:32 2019 -0400
@@ -27,10 +27,10 @@
#define GNT_TYPE_ENTRY (gnt_entry_get_gtype())
#define GNT_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_ENTRY, GntEntry))
@@ -66,28 +66,28 @@
+ GntEntryFlag GNTSEAL(flag);
- char *scroll; /* Current scrolling position */
- char *cursor; /* Cursor location */
- /* 0 <= cursor - scroll < widget-width */
+ char *GNTSEAL(scroll); /* Current scrolling position */ + char *GNTSEAL(cursor); /* Cursor location */ + /* 0 <= cursor - scroll < widget-width */ - size_t buffer; /* Size of the buffer */
+ size_t GNTSEAL(buffer); /* Size of the buffer */ - int max; /* 0 means infinite */
+ int GNTSEAL(max); /* 0 means infinite */ + gboolean GNTSEAL(masked); - GList *history; /* History of the strings. User can use this by pressing ctrl+up/down */
- int histlength; /* How long can the history be? */
+ GList *GNTSEAL(history); /* History of the strings. User can use this by pressing ctrl+up/down */ + int GNTSEAL(histlength); /* How long can the history be? */ - GList *suggests; /* List of suggestions */
- gboolean word; /* Are the suggestions for only a word, or for the whole thing? */
- gboolean always; /* Should the list of suggestions show at all times, or only on tab-press? */
- GntWidget *ddown; /* The dropdown with the suggested list */
- GntEntryKillRing *killring; /**< @since 2.3.0 */
- GntEntrySearch *search; /**< @since 2.7.0 */
+ GList *GNTSEAL(suggests); /* List of suggestions */ + gboolean GNTSEAL(word); /* Are the suggestions for only a word, or for the whole thing? */ + gboolean GNTSEAL(always); /* Should the list of suggestions show at all times, or only on tab-press? */ + GntWidget *GNTSEAL(ddown); /* The dropdown with the suggested list */ + GntEntryKillRing *GNTSEAL(killring); /**< @since 2.3.0 */ + GntEntrySearch *GNTSEAL(search); /**< @since 2.7.0 */ --- a/gntfilesel.h Sun Apr 07 04:58:33 2019 -0400
+++ b/gntfilesel.h Tue Apr 09 04:36:32 2019 -0400
@@ -27,10 +27,10 @@
#define GNT_TYPE_FILE_SEL (gnt_file_sel_get_gtype())
#define GNT_FILE_SEL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_FILE_SEL, GntFileSel))
@@ -52,22 +52,22 @@
- GntWidget *dirs; /* list of files */
- GntWidget *files; /* list of directories */
- GntWidget *location; /* location entry */
+ GntWidget *GNTSEAL(dirs); /* list of files */ + GntWidget *GNTSEAL(files); /* list of directories */ + GntWidget *GNTSEAL(location); /* location entry */ - GntWidget *select; /* select button */
- GntWidget *cancel; /* cancel button */
+ GntWidget *GNTSEAL(select); /* select button */ + GntWidget *GNTSEAL(cancel); /* cancel button */ - char *current; /* Full path of the current location */
- char *suggest; /* Suggested filename */
+ char *GNTSEAL(current); /* Full path of the current location */ + char *GNTSEAL(suggest); /* Suggested filename */ /* XXX: someone should make these useful */
- gboolean must_exist; /* Make sure the selected file (the name entered in 'location') exists */
- gboolean dirsonly; /* Show only directories */
- GList *tags; /* List of tagged files when multiselect is set */
+ gboolean GNTSEAL(must_exist); /* Make sure the selected file (the name entered in 'location') exists */ + gboolean GNTSEAL(dirsonly); /* Show only directories */ + gboolean GNTSEAL(multiselect); + GList *GNTSEAL(tags); /* List of tagged files when multiselect is set */ - gboolean (*read_fn)(const char *path, GList **files, GError **error);
+ gboolean (*GNTSEAL(read_fn))(const char *path, GList **files, GError **error); --- a/gntlabel.h Sun Apr 07 04:58:33 2019 -0400
+++ b/gntlabel.h Tue Apr 09 04:36:32 2019 -0400
@@ -45,8 +45,8 @@
- GntTextFormatFlags flags;
+ GntTextFormatFlags GNTSEAL(flags); void (*gnt_reserved1)(void);
void (*gnt_reserved2)(void);
--- a/gntline.h Sun Apr 07 04:58:33 2019 -0400
+++ b/gntline.h Tue Apr 09 04:36:32 2019 -0400
@@ -27,10 +27,10 @@
#define GNT_TYPE_LINE (gnt_line_get_gtype())
#define GNT_LINE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_LINE, GntLine))
@@ -51,7 +51,7 @@
+ gboolean GNTSEAL(vertical); --- a/gntmenu.h Sun Apr 07 04:58:33 2019 -0400
+++ b/gntmenu.h Tue Apr 09 04:36:32 2019 -0400
@@ -27,6 +27,7 @@
@@ -62,15 +63,15 @@
+ GntMenuType GNTSEAL(type);
/* This will keep track of its immediate submenu which is visible so that
* keystrokes can be passed to it. */
+ GntMenu *GNTSEAL(submenu); + GntMenu *GNTSEAL(parentmenu); --- a/gntmenuitem.h Sun Apr 07 04:58:33 2019 -0400
+++ b/gntmenuitem.h Tue Apr 09 04:36:32 2019 -0400
@@ -30,6 +30,8 @@
#define GNT_TYPE_MENU_ITEM (gnt_menuitem_get_gtype())
#define GNT_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_MENU_ITEM, GntMenuItem))
#define GNT_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_MENU_ITEM, GntMenuItemClass))
@@ -50,10 +52,10 @@
/* These will be used to determine the position of the submenu */
typedef void (*GntMenuItemCallback)(GntMenuItem *item, gpointer data);
@@ -61,17 +63,17 @@
+ GntMenuItemPriv GNTSEAL(priv);
/* A GntMenuItem can have a callback associated with it.
* The callback will be activated whenever the suer selects it and presses enter (or clicks).
* However, if the GntMenuItem has some child, then the callback and callbackdata will be ignored. */
- GntMenuItemCallback callback;
+ gpointer GNTSEAL(callbackdata); + GntMenuItemCallback GNTSEAL(callback);
+ GntMenu *GNTSEAL(submenu); --- a/gntmenuitemcheck.h Sun Apr 07 04:58:33 2019 -0400
+++ b/gntmenuitemcheck.h Tue Apr 09 04:36:32 2019 -0400
@@ -50,7 +50,7 @@
+ gboolean GNTSEAL(checked); struct _GntMenuItemCheckClass
--- a/gntslider.h Sun Apr 07 04:58:33 2019 -0400
+++ b/gntslider.h Tue Apr 09 04:36:32 2019 -0400
@@ -27,9 +27,9 @@
#define GNT_TYPE_SLIDER (gnt_slider_get_gtype())
#define GNT_SLIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_SLIDER, GntSlider))
@@ -50,14 +50,14 @@
+ gboolean GNTSEAL(vertical); - int max; /* maximum value */
- int min; /* minimum value */
- int step; /* amount to change at each step */
- int current; /* current value */
+ int GNTSEAL(max); /* maximum value */ + int GNTSEAL(min); /* minimum value */ + int GNTSEAL(step); /* amount to change at each step */ + int GNTSEAL(current); /* current value */ + int GNTSEAL(smallstep); + int GNTSEAL(largestep); --- a/gnttextview.h Sun Apr 07 04:58:33 2019 -0400
+++ b/gnttextview.h Tue Apr 09 04:36:32 2019 -0400
@@ -27,10 +27,10 @@
#define GNT_TYPE_TEXT_VIEW (gnt_text_view_get_gtype())
#define GNT_TEXT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_TEXT_VIEW, GntTextView))
@@ -58,11 +58,11 @@
- GList *list; /* List of GntTextLine */
+ GString *GNTSEAL(string); + GList *GNTSEAL(list); /* List of GntTextLine */ - GList *tags; /* A list of tags */
+ GList *GNTSEAL(tags); /* A list of tags */ + GntTextViewFlag GNTSEAL(flags); --- a/gnttree.h Sun Apr 07 04:58:33 2019 -0400
+++ b/gnttree.h Tue Apr 09 04:36:32 2019 -0400
@@ -27,11 +27,11 @@
#define GNT_TYPE_TREE (gnt_tree_get_gtype())
#define GNT_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_TREE, GntTree))
@@ -58,32 +58,32 @@
- GntTreeRow *current; /* current selection */
+ GntTreeRow *GNTSEAL(current); /* current selection */ - GntTreeRow *top; /* The topmost visible item */
- GntTreeRow *bottom; /* The bottommost visible item */
+ GntTreeRow *GNTSEAL(top); /* The topmost visible item */ + GntTreeRow *GNTSEAL(bottom); /* The bottommost visible item */ - GntTreeRow *root; /* The root of all evil */
+ GntTreeRow *GNTSEAL(root); /* The root of all evil */ - GList *list; /* List of GntTreeRow s */
- GHashTable *hash; /* We need this for quickly referencing the rows */
- guint (*hash_func)(gconstpointer);
- gboolean (*hash_eq_func)(gconstpointer, gconstpointer);
- GDestroyNotify key_destroy;
- GDestroyNotify value_destroy;
+ GList *GNTSEAL(list); /* List of GntTreeRow s */ + GHashTable *GNTSEAL(hash); /* We need this for quickly referencing the rows */ + guint (*GNTSEAL(hash_func))(gconstpointer); + gboolean (*GNTSEAL(hash_eq_func))(gconstpointer, gconstpointer); + GDestroyNotify GNTSEAL(key_destroy); + GDestroyNotify GNTSEAL(value_destroy); - int ncol; /* No. of columns */
+ int GNTSEAL(ncol); /* No. of columns */
- GntTreeColumnFlag flags;
- } *columns; /* Would a GList be better? */
- gboolean show_separator; /* Whether to show column separators */
+ int GNTSEAL(width_ratio); + GntTreeColumnFlag GNTSEAL(flags); + } *GNTSEAL(columns); /* Would a GList be better? */ + gboolean GNTSEAL(show_title); + gboolean GNTSEAL(show_separator); /* Whether to show column separators */
+ GntTreePriv *GNTSEAL(priv); --- a/gntwidget.h Sun Apr 07 04:58:33 2019 -0400
+++ b/gntwidget.h Tue Apr 09 04:36:32 2019 -0400
@@ -31,6 +31,14 @@
+# if defined(GNTSEAL_ENABLE) +# define GNTSEAL(ident) _gnt_sealed__ ## ident +# define GNTSEAL(ident) ident #define GNT_TYPE_WIDGET (gnt_widget_get_gtype())
@@ -87,22 +95,22 @@
+ int GNTSEAL(x), GNTSEAL(y); + int GNTSEAL(width), GNTSEAL(height); + GntWidgetFlags GNTSEAL(flags); - int minw, minh; /* Minimum size for the widget */
+ int GNTSEAL(minw), GNTSEAL(minh); /* Minimum size for the widget */
+ GntWidget *GNTSEAL(parent);
+ GntWidgetPriv GNTSEAL(priv); + WINDOW *GNTSEAL(window); void (*gnt_reserved1)(void);
void (*gnt_reserved2)(void);
--- a/gntwindow.h Sun Apr 07 04:58:33 2019 -0400
+++ b/gntwindow.h Tue Apr 09 04:36:32 2019 -0400
@@ -57,8 +57,8 @@
+ GntMenu *GNTSEAL(menu); + GntWindowPriv *GNTSEAL(priv); --- a/gntwm.h Sun Apr 07 04:58:33 2019 -0400
+++ b/gntwm.h Tue Apr 09 04:36:32 2019 -0400
@@ -27,6 +27,7 @@
@@ -80,24 +81,24 @@
+ GMainLoop *GNTSEAL(loop);
- GList *tagged; /* tagged windows */
+ GList *GNTSEAL(workspaces); + GList *GNTSEAL(tagged); /* tagged windows */
- *windows, /* Window-list window */
- *actions; /* Action-list window */
+ GntWidget *GNTSEAL(window); + GntWidget *GNTSEAL(tree); + *GNTSEAL(windows), /* Window-list window */ + *GNTSEAL(actions); /* Action-list window */ - GHashTable *nodes; /* GntWidget -> GntNode */
- GHashTable *name_places; /* window name -> ws*/
- GHashTable *title_places; /* window title -> ws */
+ GHashTable *GNTSEAL(nodes); /* GntWidget -> GntNode */ + GHashTable *GNTSEAL(name_places); /* window name -> ws*/ + GHashTable *GNTSEAL(title_places); /* window title -> ws */ - GList *acts; /* List of actions */
+ GList *GNTSEAL(acts); /* List of actions */ * There can be at most one menu at a time on the screen.
@@ -105,23 +106,23 @@
* the menu until it is closed, either when the user activates a menuitem, or
* presses Escape to cancel the menu.
- GntMenu *menu; /* Currently active menu */
+ GntMenu *GNTSEAL(menu); /* Currently active menu */ * 'event_stack' will be set to TRUE when a user-event, ie. a mouse-click
* or a key-press is being processed. This variable will be used to determine
* whether to give focus to a new window.
+ gboolean GNTSEAL(event_stack);
+ GntKeyPressMode GNTSEAL(mode);
+ GHashTable *GNTSEAL(positions);
typedef struct _GntWMClass GntWMClass;
--- a/gntws.h Sun Apr 07 04:58:33 2019 -0400
+++ b/gntws.h Tue Apr 09 04:36:32 2019 -0400
@@ -27,6 +27,7 @@
@@ -42,15 +43,15 @@
+ GList *GNTSEAL(ordered); + gpointer GNTSEAL(ui_data);
typedef struct _GntWSClass GntWSClass;