GtkTreeModel *vars =
gtk_tree_view_get_model (GTK_TREE_VIEW (rd->variable_treeview));
- if ( !gtk_tree_model_get_iter_first (vars, ¬_used))
+ if (!gtk_tree_model_get_iter_first (vars, ¬_used))
return FALSE;
return TRUE;
PsppireDialogActionRecode *rd = data;
GtkTreeIter not_used;
- if ( ! rd->value_map )
+ if (! rd->value_map)
return FALSE;
- if ( ! gtk_tree_model_get_iter_first (GTK_TREE_MODEL (rd->value_map),
- ¬_used) )
+ if (! gtk_tree_model_get_iter_first (GTK_TREE_MODEL (rd->value_map),
+ ¬_used))
return FALSE;
return difx_variable_treeview_is_populated (rd);
gtk_widget_hide (rd->strings_box);
}
-static void
-psppire_dialog_action_recode_same_activate (PsppireDialogAction *a)
+static GtkBuilder *
+psppire_dialog_action_recode_same_activate (PsppireDialogAction *a, GVariant *param)
{
PsppireDialogActionRecode *act = PSPPIRE_DIALOG_ACTION_RECODE (a);
PsppireDialogAction *pda = PSPPIRE_DIALOG_ACTION (a);
- psppire_dialog_action_recode_pre_activate (act, NULL);
+ GtkBuilder *xml = psppire_dialog_action_recode_pre_activate (act, NULL);
gtk_window_set_title (GTK_WINDOW (pda->dialog),
_("Recode into Same Variables"));
psppire_dialog_action_set_valid_predicate (pda,
dialog_state_valid);
+
+ return xml;
}
static void
static void
psppire_dialog_action_recode_same_class_init (PsppireDialogActionRecodeSameClass *class)
{
- psppire_dialog_action_set_activation (class, psppire_dialog_action_recode_same_activate);
+ PSPPIRE_DIALOG_ACTION_CLASS (class)->initial_activate = psppire_dialog_action_recode_same_activate;
PSPPIRE_DIALOG_ACTION_CLASS (class)->generate_syntax = same_generate_syntax;
PSPPIRE_DIALOG_ACTION_RECODE_CLASS (class)->target_is_string = target_is_string;