/soc/2013/ankitkv/gobjectification: 75d5b6e89c0d: Remove struct ...
Ankit Vani
a at nevitus.org
Thu Feb 6 12:36:01 EST 2014
Changeset: 75d5b6e89c0d536bfc7ec8d3d624e9e73fc1878c
Author: Ankit Vani <a at nevitus.org>
Date: 2014-02-06 22:53 +0530
Branch: gtkdoc-conversion
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/75d5b6e89c0d
Description:
Remove struct nesting -- gtk-doc and gir don't like it
diffstat:
finch/libgnt/gnt-skel.h | 2 +-
finch/libgnt/gnttree.h | 17 ++++++++++-------
2 files changed, 11 insertions(+), 8 deletions(-)
diffs (53 lines):
diff --git a/finch/libgnt/gnt-skel.h b/finch/libgnt/gnt-skel.h
--- a/finch/libgnt/gnt-skel.h
+++ b/finch/libgnt/gnt-skel.h
@@ -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>
diff --git a/finch/libgnt/gnttree.h b/finch/libgnt/gnttree.h
--- a/finch/libgnt/gnttree.h
+++ b/finch/libgnt/gnttree.h
@@ -48,6 +48,7 @@ typedef struct _GntTreeClass GntTreeCla
typedef struct _GntTreeRow GntTreeRow;
typedef struct _GntTreeCol GntTreeCol;
+typedef struct _GntTreeColInfo GntTreeColInfo;
typedef enum {
GNT_TREE_COLUMN_INVISIBLE = 1 << 0,
@@ -56,6 +57,14 @@ typedef enum {
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 @@ struct _GntTree
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 */
More information about the Commits
mailing list