[recipes] Fix a compiler warning
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Fix a compiler warning
- Date: Wed, 17 May 2017 02:07:56 +0000 (UTC)
commit 669e6946f958786255a18b79ce3ecc04566e7e63
Author: Matthias Clasen <mclasen redhat com>
Date: Tue May 16 22:02:40 2017 -0400
Fix a compiler warning
Also remove an #ifdef that wasn't meant to remain.
This was introduced in the previous commit.
src/gr-ingredients-viewer.c | 16 +---------------
1 files changed, 1 insertions(+), 15 deletions(-)
---
diff --git a/src/gr-ingredients-viewer.c b/src/gr-ingredients-viewer.c
index cd581b2..ecaab41 100644
--- a/src/gr-ingredients-viewer.c
+++ b/src/gr-ingredients-viewer.c
@@ -169,26 +169,12 @@ gr_ingredients_viewer_has_error (GrIngredientsViewer *viewer)
children = gtk_container_get_children (GTK_CONTAINER (viewer->list));
for (l = children; l; l = l->next) {
- GtkWidget *row = l->data;
+ GrIngredientsViewerRow *row = l->data;
GtkWidget *error_field;
-#if 0
- g_autofree char *amount = NULL;
- g_autofree char *ingredient = NULL;
-
- g_object_get (row,
- "amount", &amount,
- "ingredient", &ingredient,
- NULL);
-
- if (amount == NULL || amount[0] == '\0' ||
- ingredient == NULL || ingredient[0] == '\0')
- return row;
-#else
error_field = gr_ingredients_viewer_row_has_error (row);
if (error_field)
return error_field;
-#endif
}
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]