aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-tree.c
diff options
context:
space:
mode:
authorMike Kestner <mkestner@ximian.com>2003-06-14 06:27:03 +0800
committerMike Kestner <mkestner@src.gnome.org>2003-06-14 06:27:03 +0800
commit996f1063f9f978ae36a8b9799e22748f907ed819 (patch)
treee879cb22aa7e133a9223681dfb0880aecd875348 /widgets/table/e-tree.c
parent5b69d6b3d53fc8edf1456c2c9bcc1a579ae4b880 (diff)
downloadgsoc2013-evolution-996f1063f9f978ae36a8b9799e22748f907ed819.tar.gz
gsoc2013-evolution-996f1063f9f978ae36a8b9799e22748f907ed819.tar.zst
gsoc2013-evolution-996f1063f9f978ae36a8b9799e22748f907ed819.zip
don't do the CURSOR_FIRST checks if cursor is NULL [43523]
2003-06-13 Mike Kestner <mkestner@ximian.com> * e-tree.c (et_search_search): don't do the CURSOR_FIRST checks if cursor is NULL [43523] 2003-06-13 Mike Kestner <mkestner@ximian.com> * e-table-item.c (eti_get_cell_background_color): update to an alt row color more consistent with gtktreeview. [44610] svn path=/trunk/; revision=21440
Diffstat (limited to 'widgets/table/e-tree.c')
-rw-r--r--widgets/table/e-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c
index 5f06f65eb0..98d75ec642 100644
--- a/widgets/table/e-tree.c
+++ b/widgets/table/e-tree.c
@@ -480,7 +480,7 @@ et_search_search (ETableSearch *search, char *string, ETableSearchFlags flags, E
cursor = e_tree_get_cursor (et);
- if (flags & E_TABLE_SEARCH_FLAGS_CHECK_CURSOR_FIRST) {
+ if (cursor && (flags & E_TABLE_SEARCH_FLAGS_CHECK_CURSOR_FIRST)) {
const void *value;
value = e_tree_model_value_at (et->priv->model, cursor, col->col_idx);
@@ -504,7 +504,7 @@ et_search_search (ETableSearch *search, char *string, ETableSearchFlags flags, E
e_selection_model_select_as_key_press(E_SELECTION_MODEL (et->priv->selection), model_row, col->col_idx, GDK_CONTROL_MASK);
return TRUE;
- } else if (!(flags & E_TABLE_SEARCH_FLAGS_CHECK_CURSOR_FIRST)) {
+ } else if (cursor && !(flags & E_TABLE_SEARCH_FLAGS_CHECK_CURSOR_FIRST)) {
const void *value;
value = e_tree_model_value_at (et->priv->model, cursor, col->col_idx);