qulogic/libgnt

Remove struct nesting -- gtk-doc and gir don't like it
gtkdoc-conversion
2014-02-06, Ankit Vani
8b3814e86924
Parents e2ec44b8c194
Children 5a2f6c4d244f
Remove struct nesting -- gtk-doc and gir don't like it
  • +1 -1
    gnt-skel.h
  • +10 -7
    gnttree.h
  • --- a/gnt-skel.h Thu Feb 06 22:49:40 2014 +0530
    +++ b/gnt-skel.h Thu Feb 06 22:53:45 2014 +0530
    @@ -19,7 +19,7 @@
    * along with this program; if not, write to the Free Software
    * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
    */
    -/**
    +/*
    * SECTION:gnt-skel
    * @section_id: libgnt-gnt-skel
    * @short_description: <filename>gnt-skel.h</filename>
    --- a/gnttree.h Thu Feb 06 22:49:40 2014 +0530
    +++ b/gnttree.h Thu Feb 06 22:53:45 2014 +0530
    @@ -48,6 +48,7 @@
    typedef struct _GntTreeRow GntTreeRow;
    typedef struct _GntTreeCol GntTreeCol;
    +typedef struct _GntTreeColInfo GntTreeColInfo;
    typedef enum {
    GNT_TREE_COLUMN_INVISIBLE = 1 << 0,
    @@ -56,6 +57,14 @@
    GNT_TREE_COLUMN_RIGHT_ALIGNED = 1 << 3,
    } GntTreeColumnFlag;
    +struct _GntTreeColInfo
    +{
    + int width;
    + char *title;
    + int width_ratio;
    + GntTreeColumnFlag flags;
    +};
    +
    struct _GntTree
    {
    GntWidget parent;
    @@ -75,13 +84,7 @@
    GDestroyNotify value_destroy;
    int ncol; /* No. of columns */
    - struct _GntTreeColInfo
    - {
    - int width;
    - char *title;
    - int width_ratio;
    - GntTreeColumnFlag flags;
    - } *columns; /* Would a GList be better? */
    + GntTreeColInfo *columns; /* Would a GList be better? */
    gboolean show_title;
    gboolean show_separator; /* Whether to show column separators */