diff options
author | Christopher James Lahey <clahey@ximian.com> | 2002-03-15 04:40:21 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2002-03-15 04:40:21 +0800 |
commit | 4f298eab9e83c45991e7dce29ab556b90e080464 (patch) | |
tree | 3db866a043f4ea2371ec075fda17b23e3b469593 /widgets/table/e-table-search.c | |
parent | 1911f19678bf2dbfa0fb1a8f316293c12c060872 (diff) | |
download | gsoc2013-evolution-4f298eab9e83c45991e7dce29ab556b90e080464.tar gsoc2013-evolution-4f298eab9e83c45991e7dce29ab556b90e080464.tar.gz gsoc2013-evolution-4f298eab9e83c45991e7dce29ab556b90e080464.tar.bz2 gsoc2013-evolution-4f298eab9e83c45991e7dce29ab556b90e080464.tar.lz gsoc2013-evolution-4f298eab9e83c45991e7dce29ab556b90e080464.tar.xz gsoc2013-evolution-4f298eab9e83c45991e7dce29ab556b90e080464.tar.zst gsoc2013-evolution-4f298eab9e83c45991e7dce29ab556b90e080464.zip |
Made this return a boolean that returns whether the ETableSearch used the
2002-03-14 Christopher James Lahey <clahey@ximian.com>
* e-table-search.c, e-table-search.h (e_table_search_backspace):
Made this return a boolean that returns whether the ETableSearch
used the backspace at all.
* e-table.c (group_key_press), e-tree.c (item_key_press): Used the
new return value from e_table_search_backspace.
svn path=/trunk/; revision=16166
Diffstat (limited to 'widgets/table/e-table-search.c')
-rw-r--r-- | widgets/table/e-table-search.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/widgets/table/e-table-search.c b/widgets/table/e-table-search.c index d9465bf580..ec27d9769e 100644 --- a/widgets/table/e-table-search.c +++ b/widgets/table/e-table-search.c @@ -221,21 +221,22 @@ e_table_search_input_character (ETableSearch *ets, gunichar character) } } -void +gboolean e_table_search_backspace (ETableSearch *ets) { char *end; - g_return_if_fail (ets != NULL); - g_return_if_fail (E_IS_TABLE_SEARCH (ets)); + g_return_val_if_fail (ets != NULL, FALSE); + g_return_val_if_fail (E_IS_TABLE_SEARCH (ets), FALSE); if (!ets->priv->search_string || !*ets->priv->search_string) - return; + return FALSE; end = ets->priv->search_string + strlen (ets->priv->search_string); end = g_utf8_prev_char (end); *end = 0; ets->priv->last_character = 0; add_timeout (ets); + return TRUE; } |