aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-group-leaf.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-08-28 23:27:38 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-08-28 23:27:38 +0800
commit876558f75fd7342eb4cb95a45c6173d4a876bbc1 (patch)
treec96a7bf68309db331b3c3b7d38b0e592b0f880f3 /widgets/table/e-table-group-leaf.c
parente3913975e84bff02feedb4252d4ecb2cddce211f (diff)
downloadgsoc2013-evolution-876558f75fd7342eb4cb95a45c6173d4a876bbc1.tar
gsoc2013-evolution-876558f75fd7342eb4cb95a45c6173d4a876bbc1.tar.gz
gsoc2013-evolution-876558f75fd7342eb4cb95a45c6173d4a876bbc1.tar.bz2
gsoc2013-evolution-876558f75fd7342eb4cb95a45c6173d4a876bbc1.tar.lz
gsoc2013-evolution-876558f75fd7342eb4cb95a45c6173d4a876bbc1.tar.xz
gsoc2013-evolution-876558f75fd7342eb4cb95a45c6173d4a876bbc1.tar.zst
gsoc2013-evolution-876558f75fd7342eb4cb95a45c6173d4a876bbc1.zip
Remove a ton of (hopefully harmless) warnings from the ETable code.
svn path=/trunk/; revision=5081
Diffstat (limited to 'widgets/table/e-table-group-leaf.c')
-rw-r--r--widgets/table/e-table-group-leaf.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/widgets/table/e-table-group-leaf.c b/widgets/table/e-table-group-leaf.c
index d083d44f21..082963a616 100644
--- a/widgets/table/e-table-group-leaf.c
+++ b/widgets/table/e-table-group-leaf.c
@@ -227,9 +227,11 @@ static void
etgl_set_cursor_row (ETableGroup *etg, gint row)
{
ETableGroupLeaf *etgl = E_TABLE_GROUP_LEAF (etg);
- gnome_canvas_item_set(GNOME_CANVAS_ITEM(etgl->item),
- "cursor_row", row,
- NULL);
+
+ if (etgl->item != NULL)
+ gnome_canvas_item_set(GNOME_CANVAS_ITEM(etgl->item),
+ "cursor_row", row,
+ NULL);
}
static int