gui: Fix warnings due to missing GObject type conversions.
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 7 Feb 2012 06:13:01 +0000 (22:13 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 7 Feb 2012 06:25:47 +0000 (22:25 -0800)
src/ui/gui/psppire-dialog-action-correlation.c
src/ui/gui/psppire-dialog-action-kmeans.c
src/ui/gui/psppire-dialog-action-reliability.c
src/ui/gui/psppire-dialog-action-roc.c
src/ui/gui/psppire-dialog-action-sort.c

index c86dd51165644eab89608afa302eb2a3e4817316..456ce15d324476d62c49986b9a64eb95824c23bd 100644 (file)
@@ -78,8 +78,10 @@ dialog_state_valid (gpointer user_data)
 }
 
 static void
-refresh (PsppireDialogActionCorrelation *rd)
+refresh (PsppireDialogAction *rd_)
 {
+  PsppireDialogActionCorrelation *rd =
+    PSPPIRE_DIALOG_ACTION_CORRELATION (rd_);
   GtkTreeModel *liststore =
     gtk_tree_view_get_model (GTK_TREE_VIEW (rd->variables));
   gtk_list_store_clear (GTK_LIST_STORE (liststore));
index 3656a5d9b97fbf3d9190c0068be911ad5bfd45b2..bcd59889f51bae06bfaffcadb2769823a5ce5c06 100644 (file)
@@ -71,8 +71,9 @@ dialog_state_valid (gpointer user_data)
 }
 
 static void
-refresh (PsppireDialogActionKmeans *fd)
+refresh (PsppireDialogAction *fd_)
 {
+  PsppireDialogActionKmeans *fd = PSPPIRE_DIALOG_ACTION_KMEANS (fd_);
   GtkTreeModel *liststore =
     gtk_tree_view_get_model (GTK_TREE_VIEW (fd->variables));
   gtk_list_store_clear (GTK_LIST_STORE (liststore));
index 296d1526e2258b05980ed9cdd12de20475372c0b..67d8c186a5a377cf1e5cbb966e3a7a9fe25169eb 100644 (file)
@@ -81,8 +81,10 @@ on_method_change (PsppireDialogActionReliability *pda)
 
 
 static void
-refresh (PsppireDialogActionReliability *pda)
+refresh (PsppireDialogAction *pda_)
 {
+  PsppireDialogActionReliability *pda =
+    PSPPIRE_DIALOG_ACTION_RELIABILITY (pda_);
   GtkTreeModel *liststore =
     gtk_tree_view_get_model (GTK_TREE_VIEW (pda->variables));
   gtk_list_store_clear (GTK_LIST_STORE (liststore));
index 5d25132fdc06ee3357613ffa9faec0126a3a104f..fc0bb7be4469cbff46f6acab4954687f65ef33e0 100644 (file)
@@ -77,8 +77,9 @@ on_curve_button_toggle (GtkCheckButton *curve, PsppireDialogActionRoc *rd)
 }
 
 static void
-refresh (PsppireDialogActionRoc *rd)
+refresh (PsppireDialogAction *rd_)
 {
+  PsppireDialogActionRoc *rd = PSPPIRE_DIALOG_ACTION_ROC (rd_);
   GtkTreeModel *liststore =
     gtk_tree_view_get_model (GTK_TREE_VIEW (rd->test_variables));
   gtk_list_store_clear (GTK_LIST_STORE (liststore));
index 2a80a6e7dc5471ba5830135e6b614de43979cdaf..29c3c8063edfd1c373c6e8a082330526548c0e8a 100644 (file)
@@ -36,7 +36,8 @@ generate_syntax (PsppireDialogAction *act)
   gchar *text;
   GString *string = g_string_new ("SORT CASES BY ");
 
-  gint n_vars = psppire_var_view_append_names (scd->variables, 0, string);
+  PsppireVarView *var_view = PSPPIRE_VAR_VIEW (scd->variables);
+  gint n_vars = psppire_var_view_append_names (var_view, 0, string);
 
   if ( n_vars == 0 )
     {
@@ -45,7 +46,8 @@ generate_syntax (PsppireDialogAction *act)
   else
     {
       const char up_down =
-       gtk_toggle_button_get_active (scd->ascending) ? 'A' : 'D';
+       (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (scd->ascending))
+         ? 'A' : 'D');
       g_string_append_printf (string, "(%c)", up_down);
       g_string_append (string, ".");
     }
@@ -66,14 +68,14 @@ reset (PsppireDialogAction *act)
 
   gtk_list_store_clear (GTK_LIST_STORE (liststore));
 
-  gtk_toggle_button_set_active (scd->ascending, TRUE);
+  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (scd->ascending), TRUE);
 }
 
 
 
 
 static gboolean
-dialog_state_valid (PsppireDialogAction *act)
+dialog_state_valid (gpointer act)
 {
   PsppireDialogActionSort *scd = PSPPIRE_DIALOG_ACTION_SORT (act);
   GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (scd->variables));