X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-dialog-action-regression.c;h=b475ebb0dfb6a9b5be6a855ee43cefaf3ea0eef3;hb=ccaf88efae9f6f4d93d7812834c412e8fd511bb2;hp=0cfadb14012188922071185ee19a71d73a7024b9;hpb=3dd0f6ae0d5eb73a2270a243e443c4ae03c2c16e;p=pspp diff --git a/src/ui/gui/psppire-dialog-action-regression.c b/src/ui/gui/psppire-dialog-action-regression.c index 0cfadb1401..b475ebb0df 100644 --- a/src/ui/gui/psppire-dialog-action-regression.c +++ b/src/ui/gui/psppire-dialog-action-regression.c @@ -141,20 +141,14 @@ on_save_clicked (PsppireDialogActionRegression *rd) } -static void -psppire_dialog_action_regression_activate (PsppireDialogAction *a) +static GtkBuilder * +psppire_dialog_action_regression_activate (PsppireDialogAction *a, GVariant *param) { PsppireDialogActionRegression *act = PSPPIRE_DIALOG_ACTION_REGRESSION (a); PsppireDialogAction *pda = PSPPIRE_DIALOG_ACTION (a); - GHashTable *thing = psppire_dialog_action_get_hash_table (pda); - GtkBuilder *xml = g_hash_table_lookup (thing, a); - if (!xml) - { - xml = builder_new ("regression.ui"); - g_hash_table_insert (thing, a, xml); - } - + GtkBuilder *xml = builder_new ( "regression.ui"); + GtkWidget *stat_button = get_widget_assert (xml, "stat-button"); GtkWidget *save_button = get_widget_assert (xml, "save-button"); @@ -185,7 +179,7 @@ psppire_dialog_action_regression_activate (PsppireDialogAction *a) g_signal_connect_swapped (save_button, "clicked", G_CALLBACK (on_save_clicked), act); - + return xml; } @@ -259,7 +253,7 @@ generate_syntax (const PsppireDialogAction *a) static void psppire_dialog_action_regression_class_init (PsppireDialogActionRegressionClass *class) { - psppire_dialog_action_set_activation (class, psppire_dialog_action_regression_activate); + PSPPIRE_DIALOG_ACTION_CLASS (class)->initial_activate = psppire_dialog_action_regression_activate; PSPPIRE_DIALOG_ACTION_CLASS (class)->generate_syntax = generate_syntax; }