From 7466f9c7baaf5a5d4cc7b670be290395ccb20b65 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 25 Jan 2012 21:17:19 -0800 Subject: [PATCH] gui: Fix warnings. This fixes warnings introduced in commit 53508ccb5785 (New abstract class PsppireDialogAction). --- src/ui/gui/psppire-dialog-action-descriptives.c | 4 +++- src/ui/gui/psppire-dialog-action.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ui/gui/psppire-dialog-action-descriptives.c b/src/ui/gui/psppire-dialog-action-descriptives.c index 170604c9..d1c7d213 100644 --- a/src/ui/gui/psppire-dialog-action-descriptives.c +++ b/src/ui/gui/psppire-dialog-action-descriptives.c @@ -169,8 +169,10 @@ dialog_state_valid (gpointer data) } static void -dialog_refresh (PsppireDialogActionDescriptives *scd) +dialog_refresh (PsppireDialogAction *scd_) { + PsppireDialogActionDescriptives *scd + = PSPPIRE_DIALOG_ACTION_DESCRIPTIVES (scd_); GtkTreeModel *liststore; GtkTreeIter iter; size_t i; diff --git a/src/ui/gui/psppire-dialog-action.c b/src/ui/gui/psppire-dialog-action.c index e3ee25be..e2b15e03 100644 --- a/src/ui/gui/psppire-dialog-action.c +++ b/src/ui/gui/psppire-dialog-action.c @@ -176,7 +176,8 @@ void psppire_dialog_action_set_valid_predicate (PsppireDialogAction *act, ContentsAreValid dialog_state_valid) { - psppire_dialog_set_valid_predicate (act->dialog, dialog_state_valid, act); + psppire_dialog_set_valid_predicate (PSPPIRE_DIALOG (act->dialog), + dialog_state_valid, act); } void -- 2.30.2