Updated version number to 0.9.0 ( 9 indicating unstable version )
[pspp] / src / ui / gui / psppire-dialog-action-var-info.c
index a638be441fb6e17df561179122b92e3a59d1a795..4e2d8ea039cd8bd8623959aed52de07c44377b3c 100644 (file)
@@ -52,7 +52,7 @@ treeview_item_selected (gpointer data)
   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 *
@@ -200,9 +200,7 @@ psppire_dialog_action_var_info_activate (GtkAction *a)
 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;
 }