[recipes] units: Allow completing pure numbers
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] units: Allow completing pure numbers
- Date: Sat, 27 May 2017 16:05:23 +0000 (UTC)
commit fbe53d982334e0deaedabf95e749635fb99f8890
Author: Matthias Clasen <mclasen redhat com>
Date: Sat May 27 12:04:32 2017 -0400
units: Allow completing pure numbers
For cases like "6 eggs", make the plain number show up
in the completions.
https://bugzilla.gnome.org/show_bug.cgi?id=783151
src/gr-ingredients-viewer-row.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gr-ingredients-viewer-row.c b/src/gr-ingredients-viewer-row.c
index 47c9be1..4d6433d 100644
--- a/src/gr-ingredients-viewer-row.c
+++ b/src/gr-ingredients-viewer-row.c
@@ -731,6 +731,10 @@ get_units_model (GrIngredientsViewerRow *row)
GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID,
GTK_SORT_ASCENDING);
+ gtk_list_store_insert_with_values (store, NULL, -1,
+ 0, "",
+ -1);
+
names = gr_unit_get_names ();
for (i = 0; names[i]; i++) {
gtk_list_store_insert_with_values (store, NULL, -1,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]