summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnkit Vani <a@nevitus.org>2014-02-06 22:53:45 +0530
committerAnkit Vani <a@nevitus.org>2014-02-06 22:53:45 +0530
commit55e960a6db45459b4b27463cf03baa1bf8e6c3ed (patch)
tree013280ebc486f7af5d4d70cc50ce90b7e29a23a0
parenta45c2e26f87b443e810a407f66defe8d300328b4 (diff)
downloadpidgin-55e960a6db45459b4b27463cf03baa1bf8e6c3ed.tar.gz
Remove struct nesting -- gtk-doc and gir don't like it
-rw-r--r--finch/libgnt/gnt-skel.h2
-rw-r--r--finch/libgnt/gnttree.h17
2 files changed, 11 insertions, 8 deletions
diff --git a/finch/libgnt/gnt-skel.h b/finch/libgnt/gnt-skel.h
index 5585bb7f9a..8186e620e8 100644
--- 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
index 38c3914ab2..8eb3f12539 100644
--- a/finch/libgnt/gnttree.h
+++ b/finch/libgnt/gnttree.h
@@ -48,6 +48,7 @@ typedef struct _GntTreeClass GntTreeClass;
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 */