X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-dialog-action-roc.c;h=694effb7b888512556a2a229b230cf6827537d8f;hb=c1945b7547f9f7b96dcd90f884a396fdd0018b3b;hp=03748f294666aa4fe514697203f19ee3a8efa1dd;hpb=fc6620099bbc53762095569d5356b67a81a85402;p=pspp diff --git a/src/ui/gui/psppire-dialog-action-roc.c b/src/ui/gui/psppire-dialog-action-roc.c index 03748f2946..694effb7b8 100644 --- a/src/ui/gui/psppire-dialog-action-roc.c +++ b/src/ui/gui/psppire-dialog-action-roc.c @@ -62,10 +62,10 @@ dialog_state_valid (gpointer data) value_init (&val, width); result = psppire_value_entry_get_value (PSPPIRE_VALUE_ENTRY (rd->state_value), &val, width); - + if (var_is_value_missing (var, &val, MV_SYSTEM)) result = FALSE; - + value_destroy (&val, width); return result; @@ -80,7 +80,7 @@ on_curve_button_toggle (GtkCheckButton *curve, PsppireDialogActionRoc *rd) g_object_set (rd->reference, "inconsistent", TRUE, NULL); g_object_set (rd->reference, "sensitive", FALSE, NULL); } - else + else { g_object_set (rd->reference, "inconsistent", FALSE, NULL); g_object_set (rd->reference, "sensitive", TRUE, NULL); @@ -105,7 +105,7 @@ refresh (PsppireDialogAction *rd_) } static void -on_state_var_changed (GtkAction *a) +on_state_var_changed (PsppireDialogAction *a) { PsppireDialogActionRoc *act = PSPPIRE_DIALOG_ACTION_ROC (a); @@ -121,12 +121,12 @@ on_state_var_changed (GtkAction *a) } static void -psppire_dialog_action_roc_activate (GtkAction *a) +psppire_dialog_action_roc_activate (PsppireDialogAction *a) { PsppireDialogActionRoc *act = PSPPIRE_DIALOG_ACTION_ROC (a); PsppireDialogAction *pda = PSPPIRE_DIALOG_ACTION (a); - GHashTable *thing = psppire_dialog_action_get_pointer (pda); + GHashTable *thing = psppire_dialog_action_get_hash_table (pda); GtkBuilder *xml = g_hash_table_lookup (thing, a); if (!xml) { @@ -158,14 +158,12 @@ psppire_dialog_action_roc_activate (GtkAction *a) psppire_dialog_action_set_valid_predicate (pda, dialog_state_valid); - if (PSPPIRE_DIALOG_ACTION_CLASS (psppire_dialog_action_roc_parent_class)->activate) - PSPPIRE_DIALOG_ACTION_CLASS (psppire_dialog_action_roc_parent_class)->activate (pda); } static char * -generate_syntax (PsppireDialogAction *a) +generate_syntax (const PsppireDialogAction *a) { PsppireDialogActionRoc *rd = PSPPIRE_DIALOG_ACTION_ROC (a); gchar *text; @@ -194,10 +192,10 @@ generate_syntax (PsppireDialogAction *a) { struct string str; ds_init_empty (&str); - + syntax_gen_value (&str, &val, var_get_width (var), var_get_print_format (var)); - + g_string_append (string, ds_cstr (&str)); ds_destroy (&str); }