Append the correct number of null bytes to the end of recoded strings
[pspp] / src / ui / gui / psppire-dialog-action-roc.c
index babd4b306aa65dab3ab14b8c9c81340b5b1f3686..578ef747771b59fb2ee097552ad7c16de7b9936a 100644 (file)
@@ -108,7 +108,6 @@ static void
 on_state_var_changed (GtkAction *a)
 {
   PsppireDialogActionRoc *act = PSPPIRE_DIALOG_ACTION_ROC (a);
-  PsppireDialogAction *pda = PSPPIRE_DIALOG_ACTION (a);
 
   const gchar *var_name = gtk_entry_get_text (GTK_ENTRY(act->state_variable));
 
@@ -239,9 +238,7 @@ generate_syntax (PsppireDialogAction *a)
 static void
 psppire_dialog_action_roc_class_init (PsppireDialogActionRocClass *class)
 {
-  GtkActionClass *action_class = GTK_ACTION_CLASS (class);
-
-  action_class->activate = psppire_dialog_action_roc_activate;
+  psppire_dialog_action_set_activation (class, psppire_dialog_action_roc_activate);
 
   PSPPIRE_DIALOG_ACTION_CLASS (class)->generate_syntax = generate_syntax;
 }