aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-click-to-add.c
diff options
context:
space:
mode:
authorLarry Ewing <lewing@ximian.com>2003-01-24 02:40:17 +0800
committerLarry Ewing <lewing@src.gnome.org>2003-01-24 02:40:17 +0800
commit82978ed2aeeaca044d3df85b21c59c9c8f0d3b2b (patch)
treeb3e7e051d62aa9edf96f7a06322e1e1eab2f1682 /widgets/table/e-table-click-to-add.c
parent9c3b7cbe4921f073f939b1c70e112662588122cc (diff)
downloadgsoc2013-evolution-82978ed2aeeaca044d3df85b21c59c9c8f0d3b2b.tar
gsoc2013-evolution-82978ed2aeeaca044d3df85b21c59c9c8f0d3b2b.tar.gz
gsoc2013-evolution-82978ed2aeeaca044d3df85b21c59c9c8f0d3b2b.tar.bz2
gsoc2013-evolution-82978ed2aeeaca044d3df85b21c59c9c8f0d3b2b.tar.lz
gsoc2013-evolution-82978ed2aeeaca044d3df85b21c59c9c8f0d3b2b.tar.xz
gsoc2013-evolution-82978ed2aeeaca044d3df85b21c59c9c8f0d3b2b.tar.zst
gsoc2013-evolution-82978ed2aeeaca044d3df85b21c59c9c8f0d3b2b.zip
destroy canvas items to removing them, simply unrefing them is not
2003-01-23 Larry Ewing <lewing@ximian.com> * e-table-click-to-add.c (e_table_click_to_add_commit): destroy canvas items to removing them, simply unrefing them is not sufficient. svn path=/trunk/; revision=19589
Diffstat (limited to 'widgets/table/e-table-click-to-add.c')
-rw-r--r--widgets/table/e-table-click-to-add.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/widgets/table/e-table-click-to-add.c b/widgets/table/e-table-click-to-add.c
index 4f423c0af4..ba373e34f8 100644
--- a/widgets/table/e-table-click-to-add.c
+++ b/widgets/table/e-table-click-to-add.c
@@ -309,7 +309,7 @@ finish_editing (ETableClickToAdd *etcta)
e_table_item_leave_edit (E_TABLE_ITEM (etcta->row));
e_table_one_commit(E_TABLE_ONE(etcta->one));
etcta_drop_one (etcta);
- g_object_unref(etcta->row);
+ gtk_object_destroy(etcta->row);
etcta->row = NULL;
one = e_table_one_new(etcta->model);
@@ -347,11 +347,11 @@ etcta_event (GnomeCanvasItem *item, GdkEvent *e)
switch (e->type){
case GDK_BUTTON_PRESS:
if (etcta->text) {
- g_object_unref(etcta->text);
+ gtk_object_destroy(etcta->text);
etcta->text = NULL;
}
if (etcta->rect) {
- g_object_unref(etcta->rect);
+ gtk_object_destroy(etcta->rect);
etcta->rect = NULL;
}
if (!etcta->row) {
@@ -532,7 +532,7 @@ e_table_click_to_add_commit (ETableClickToAdd *etcta)
if (etcta->row) {
e_table_one_commit(E_TABLE_ONE(etcta->one));
etcta_drop_one (etcta);
- g_object_unref(etcta->row);
+ gtk_object_destroy(etcta->row);
etcta->row = NULL;
}
if (!etcta->rect) {