[recipes] edit page: Save ingredients lists in the new format
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] edit page: Save ingredients lists in the new format
- Date: Sun, 25 Dec 2016 20:04:30 +0000 (UTC)
commit ec94e600144a6c7c9cd80b0de7dca1e3a812b760
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Dec 24 23:15:23 2016 -0500
edit page: Save ingredients lists in the new format
src/gr-edit-page.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/gr-edit-page.c b/src/gr-edit-page.c
index 91d856d..88957c6 100644
--- a/src/gr-edit-page.c
+++ b/src/gr-edit-page.c
@@ -535,14 +535,12 @@ collect_ingredients (GrEditPage *page)
if (s->len > 0)
g_string_append (s, "\n");
g_string_append (s, (const char *)g_object_get_data (G_OBJECT (row), "amount"));
- g_string_append (s, " ");
+ g_string_append (s, "\t");
g_string_append (s, (const char *)g_object_get_data (G_OBJECT (row), "unit"));
- g_string_append (s, " ");
+ g_string_append (s, "\t");
g_string_append (s, (const char *)g_object_get_data (G_OBJECT (row), "ingredient"));
- if (page->segments->next != NULL) {
- g_string_append (s, "\t");
- g_string_append (s, gtk_entry_get_text (GTK_ENTRY (entry)));
- }
+ g_string_append (s, "\t");
+ g_string_append (s, gtk_entry_get_text (GTK_ENTRY (entry)));
}
g_list_free (children);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]