[recipes/inline-editing-2] Fix compiler warnings introduced in commit 4ff0d5228b2212f11e77ecb946c698c14b6e101e
- From: Ekta Nandwani <ektan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes/inline-editing-2] Fix compiler warnings introduced in commit 4ff0d5228b2212f11e77ecb946c698c14b6e101e
- Date: Mon, 8 May 2017 14:30:24 +0000 (UTC)
commit 710653b2203ddff248aae7958f6073a32b2e8312
Author: Ekta Nandwani <mailnandwaniekta gmail com>
Date: Mon May 8 19:59:35 2017 +0530
Fix compiler warnings introduced in commit 4ff0d5228b2212f11e77ecb946c698c14b6e101e
src/gr-ingredients-viewer-row.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gr-ingredients-viewer-row.c b/src/gr-ingredients-viewer-row.c
index 0180996..dc01012 100644
--- a/src/gr-ingredients-viewer-row.c
+++ b/src/gr-ingredients-viewer-row.c
@@ -261,10 +261,10 @@ drag_handle_clicked (GrIngredientsViewerRow *row)
static void
edit_ingredient (GrIngredientsViewerRow *row)
{
- GrIngredientsViewer *viewer = gtk_widget_get_ancestor (row, GR_TYPE_INGREDIENTS_VIEWER);
+ GrIngredientsViewer *viewer = GR_INGREDIENTS_VIEWER (gtk_widget_get_ancestor (GTK_WIDGET (row),
GR_TYPE_INGREDIENTS_VIEWER));
save_unit (row);
if (row->editable) {
- set_active_row (viewer, GTK_LIST_BOX_ROW (row));
+ set_active_row (viewer, GTK_WIDGET (row));
gtk_entry_set_text (GTK_ENTRY (row->ingredient_entry), row->ingredient);
gtk_stack_set_visible_child_name (GTK_STACK (row->ingredient_stack), "ingredient_entry");
gtk_widget_grab_focus (row->ingredient_entry);
@@ -283,11 +283,11 @@ edit_unit (GrIngredientsViewerRow *row)
space = amount[0] ? " " : "";
unit = row->unit ? row->unit : "";
tmp = g_strdup_printf ("%s%s%s", amount, space, unit);
- GrIngredientsViewer *viewer = gtk_widget_get_ancestor (row, GR_TYPE_INGREDIENTS_VIEWER);
+ GrIngredientsViewer *viewer = GR_INGREDIENTS_VIEWER (gtk_widget_get_ancestor (GTK_WIDGET (row),
GR_TYPE_INGREDIENTS_VIEWER));
save_ingredient (row);
if (row->editable) {
- set_active_row (viewer, GTK_LIST_BOX_ROW (row));
+ set_active_row (viewer, GTK_WIDGET (row));
gtk_entry_set_text (GTK_ENTRY (row->unit_entry), tmp);
gtk_stack_set_visible_child_name (GTK_STACK (row->unit_stack), "unit_entry");
gtk_widget_grab_focus (row->unit_entry);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]