GtkTreeView *tv = GTK_TREE_VIEW (pda->source);
GtkTreeSelection *selection = gtk_tree_view_get_selection (tv);
- return gtk_tree_selection_count_selected_rows (selection) > 0;
+ return gtk_tree_selection_count_selected_rows (selection) == 1;
}
static gchar *
static void
psppire_dialog_action_var_info_class_init (PsppireDialogActionVarInfoClass *class)
{
- GtkActionClass *action_class = GTK_ACTION_CLASS (class);
-
- action_class->activate = psppire_dialog_action_var_info_activate;
+ psppire_dialog_action_set_activation (class, psppire_dialog_action_var_info_activate);
PSPPIRE_DIALOG_ACTION_CLASS (class)->generate_syntax = generate_syntax;
}