aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/gal-view-etable.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-06-26 23:59:40 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-07-02 22:34:08 +0800
commit05c04b5512f8e6cc73b7c9ddb78640212cbdd71d (patch)
treef826ff6ac1043cecd9920c0b880631ea00131517 /e-util/gal-view-etable.c
parent9deb892820f4b9d121b971d6af86116f3e18b6e2 (diff)
downloadgsoc2013-evolution-05c04b5512f8e6cc73b7c9ddb78640212cbdd71d.tar
gsoc2013-evolution-05c04b5512f8e6cc73b7c9ddb78640212cbdd71d.tar.gz
gsoc2013-evolution-05c04b5512f8e6cc73b7c9ddb78640212cbdd71d.tar.bz2
gsoc2013-evolution-05c04b5512f8e6cc73b7c9ddb78640212cbdd71d.tar.lz
gsoc2013-evolution-05c04b5512f8e6cc73b7c9ddb78640212cbdd71d.tar.xz
gsoc2013-evolution-05c04b5512f8e6cc73b7c9ddb78640212cbdd71d.tar.zst
gsoc2013-evolution-05c04b5512f8e6cc73b7c9ddb78640212cbdd71d.zip
ETableState: Add a "specification" construct-only property.
ETableState now keeps a weak reference on the ETableSpecification to which it's associated. The plan is to replace the column index numbers with a direct reference to an ETableColumnSpecification from the spec. New functions: e_table_state_ref_specification()
Diffstat (limited to 'e-util/gal-view-etable.c')
-rw-r--r--e-util/gal-view-etable.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/e-util/gal-view-etable.c b/e-util/gal-view-etable.c
index 3f50e2881a..1dc8f5d357 100644
--- a/e-util/gal-view-etable.c
+++ b/e-util/gal-view-etable.c
@@ -137,13 +137,10 @@ gal_view_etable_clone (GalView *view)
gve = GAL_VIEW_ETABLE (view);
new = g_object_new (GAL_TYPE_VIEW_ETABLE, NULL);
- new->spec = gve->spec;
+ new->spec = g_object_ref (gve->spec);
new->title = g_strdup (gve->title);
- g_object_unref (new->state);
new->state = e_table_state_duplicate (gve->state);
- g_object_ref (new->spec);
-
return GAL_VIEW (new);
}
@@ -189,9 +186,6 @@ gal_view_etable_class_init (GalViewEtableClass *class)
static void
gal_view_etable_init (GalViewEtable *gve)
{
- gve->spec = NULL;
- gve->state = e_table_state_new ();
- gve->title = NULL;
}
/**
@@ -237,6 +231,7 @@ gal_view_etable_construct (GalViewEtable *view,
g_return_val_if_fail (E_IS_TABLE_SPECIFICATION (spec), NULL);
view->spec = g_object_ref (spec);
+ view->state = e_table_state_new (spec);
if (view->state)
g_object_unref (view->state);