From: Ben Pfaff Date: Thu, 26 Jan 2012 05:17:19 +0000 (-0800) Subject: gui: Fix warnings. X-Git-Tag: v0.7.9~13 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7466f9c7baaf5a5d4cc7b670be290395ccb20b65;p=pspp-builds.git gui: Fix warnings. This fixes warnings introduced in commit 53508ccb5785 (New abstract class PsppireDialogAction). --- 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