{
PsppireDialogActionSort *scd = PSPPIRE_DIALOG_ACTION_SORT (act);
gchar *text;
GString *string = g_string_new ("SORT CASES BY ");
{
PsppireDialogActionSort *scd = PSPPIRE_DIALOG_ACTION_SORT (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);
g_string_append_printf (string, "(%c)", up_down);
g_string_append (string, ".");
}
g_string_append_printf (string, "(%c)", up_down);
g_string_append (string, ".");
}
{
PsppireDialogActionSort *scd = PSPPIRE_DIALOG_ACTION_SORT (act);
GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (scd->variables));
gint n_rows = gtk_tree_model_iter_n_children (model, NULL);
{
PsppireDialogActionSort *scd = PSPPIRE_DIALOG_ACTION_SORT (act);
GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (scd->variables));
gint n_rows = gtk_tree_model_iter_n_children (model, NULL);
{
PsppireDialogAction *pda = PSPPIRE_DIALOG_ACTION (a);
PsppireDialogActionSort *act = PSPPIRE_DIALOG_ACTION_SORT (a);
GtkBuilder *xml = builder_new ("sort.ui");
{
PsppireDialogAction *pda = PSPPIRE_DIALOG_ACTION (a);
PsppireDialogActionSort *act = PSPPIRE_DIALOG_ACTION_SORT (a);
GtkBuilder *xml = builder_new ("sort.ui");
- pda->dialog = get_widget_assert (xml, "sort-cases-dialog");
- pda->source = get_widget_assert (xml, "sort-cases-treeview1");
-
- act->variables = get_widget_assert (xml, "sort-cases-treeview2");
+
+ pda->dialog = get_widget_assert (xml, "sort-cases-dialog");
+ pda->source = get_widget_assert (xml, "sort-cases-treeview1");
+
+ act->variables = get_widget_assert (xml, "sort-cases-treeview2");
act->ascending = get_widget_assert (xml, "sort-cases-radiobutton0");
psppire_dialog_action_set_refresh (pda, reset);
psppire_dialog_action_set_valid_predicate (pda,
dialog_state_valid);
act->ascending = get_widget_assert (xml, "sort-cases-radiobutton0");
psppire_dialog_action_set_refresh (pda, reset);
psppire_dialog_action_set_valid_predicate (pda,
dialog_state_valid);
- GtkActionClass *action_class = GTK_ACTION_CLASS (class);
- PsppireDialogActionClass *pdac = PSPPIRE_DIALOG_ACTION_CLASS (class);
-
- action_class->activate = psppire_dialog_action_sort_activate;
+ PsppireDialogActionClass *pdac = PSPPIRE_DIALOG_ACTION_CLASS (class);
+ PSPPIRE_DIALOG_ACTION_CLASS (class)->initial_activate = psppire_dialog_action_sort_activate;