aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-search.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/table/e-table-search.c')
-rw-r--r--widgets/table/e-table-search.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/widgets/table/e-table-search.c b/widgets/table/e-table-search.c
index e05210fe65..d9465bf580 100644
--- a/widgets/table/e-table-search.c
+++ b/widgets/table/e-table-search.c
@@ -220,3 +220,22 @@ e_table_search_input_character (ETableSearch *ets, gunichar character)
}
}
}
+
+void
+e_table_search_backspace (ETableSearch *ets)
+{
+ char *end;
+
+ g_return_if_fail (ets != NULL);
+ g_return_if_fail (E_IS_TABLE_SEARCH (ets));
+
+ if (!ets->priv->search_string ||
+ !*ets->priv->search_string)
+ return;
+
+ 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);
+}