gui: Fix warnings.
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 26 Jan 2012 05:17:19 +0000 (21:17 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 26 Jan 2012 05:17:19 +0000 (21:17 -0800)
This fixes warnings introduced in commit 53508ccb5785 (New abstract
class PsppireDialogAction).

src/ui/gui/psppire-dialog-action-descriptives.c
src/ui/gui/psppire-dialog-action.c

index 170604c9458b8a9f26655d79be16cc3ea4aa7890..d1c7d21362e0aaea250a62df2c38eb4bd8f188ab 100644 (file)
@@ -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;
index e3ee25be75fc7f53c021314573e29a6ec42ed537..e2b15e03eba76085b90d9c5756ba8f6a493bf6b4 100644 (file)
@@ -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