]> saetta.ns0.it Git - libgdaex/commitdiff
Bugfixes.
authorAndrea Zagli <azagli@libero.it>
Mon, 27 Dec 2010 16:28:03 +0000 (17:28 +0100)
committerAndrea Zagli <azagli@libero.it>
Mon, 27 Dec 2010 16:28:03 +0000 (17:28 +0100)
src/grid.c
src/gridcolumn.c

index 765e541a64061b5fee54e36fe8eb4b27e34e1ce7..b196ce4c53bb1d6b2a315d0eeed6ac69e39d46f3 100644 (file)
@@ -25,6 +25,8 @@
        #include <config.h>
 #endif
 
+#include <gtk/gtk.h>
+
 #include "grid.h"
 
 static void gdaex_grid_class_init (GdaExGridClass *klass);
@@ -39,7 +41,7 @@ static void gdaex_grid_get_property (GObject *object,
                                GValue *value,
                                GParamSpec *pspec);
 
-#define GDAEX_GRID_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_GDAEX_GRID, GdaExGridPrivate))
+#define GDAEX_GRID_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GDAEX_TYPE_GRID, GdaExGridPrivate))
 
 typedef struct
        {
@@ -50,7 +52,7 @@ typedef struct
 typedef struct _GdaExGridPrivate GdaExGridPrivate;
 struct _GdaExGridPrivate
        {
-               GPtrArray *colums; /* _Column */
+               GPtrArray *columns; /* _Column */
        };
 
 G_DEFINE_TYPE (GdaExGrid, gdaex_grid, G_TYPE_OBJECT)
@@ -94,7 +96,7 @@ gdaex_grid_add_column (GdaExGrid *grid, GdaExGridColumn *column)
 
        priv = GDAEX_GRID_GET_PRIVATE (grid);
 
-       g_ptr_array_add (priv->columns, g_memdup (column, sizeof (GdaExGridColumn)))
+       g_ptr_array_add (priv->columns, g_memdup (column, sizeof (GdaExGridColumn)));
 }
 
 void
@@ -103,7 +105,6 @@ gdaex_grid_add_columns (GdaExGrid *grid, GSList *columns)
        GSList *first;
 
        g_return_if_fail (GDAEX_IS_GRID (grid));
-       g_return_if_fail (G_IS_SLIST (columns));
 
        first = columns;
        while (first != NULL)
index 3d1dcd32d884bb3a3d637c04b4fa348db1323f1d..b3a76382a62010e78b7c794a554da24370faa7e4 100644 (file)
@@ -39,7 +39,7 @@ static void gdaex_grid_column_get_property (GObject *object,
                                GValue *value,
                                GParamSpec *pspec);
 
-#define GDAEX_GRID_COLUMN_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_GDAEX_GRID_COLUMN, GdaExGridColumnPrivate))
+#define GDAEX_GRID_COLUMN_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GDAEX_TYPE_GRID_COLUMN, GdaExGridColumnPrivate))
 
 typedef struct _GdaExGridColumnPrivate GdaExGridColumnPrivate;
 struct _GdaExGridColumnPrivate