summaryrefslogtreecommitdiff
path: root/plugins/gtk+/glade-gtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gtk+/glade-gtk.c')
-rw-r--r--plugins/gtk+/glade-gtk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/gtk+/glade-gtk.c b/plugins/gtk+/glade-gtk.c
index 5bd512f2..f949e668 100644
--- a/plugins/gtk+/glade-gtk.c
+++ b/plugins/gtk+/glade-gtk.c
@@ -10772,7 +10772,7 @@ glade_gtk_store_read_columns (GladeWidget *widget, GladeXmlNode *node)
for (prop = glade_xml_node_get_children_with_comments (columns_node); prop;
prop = glade_xml_node_next_with_comments (prop))
{
- GladeColumnType *data = g_new0 (GladeColumnType, 1);
+ GladeColumnType *data;
gchar *type, *comment_str, buffer[256];
if (!glade_xml_node_verify_silent (prop, GLADE_TAG_COLUMN) &&
@@ -10789,6 +10789,8 @@ glade_gtk_store_read_columns (GladeWidget *widget, GladeXmlNode *node)
}
type = glade_xml_get_property_string_required (prop, GLADE_TAG_TYPE, NULL);
+
+ data = glade_column_type_new (type, NULL);
data->type_name = g_strdup (type);
data->column_name = column_name[0] ? g_strdup (column_name) : g_ascii_strdown (type, -1);