From 49a2f5d06529dec8d56be3d6994cce88f742e4f0 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sun, 6 Dec 2015 12:31:11 +0100 Subject: [PATCH] Paired Samples Dialog: Replace deprecated widgets --- src/ui/gui/paired-samples.ui | 228 ++++++++++++---------- src/ui/gui/psppire-dialog-action-paired.c | 11 +- 2 files changed, 130 insertions(+), 109 deletions(-) diff --git a/src/ui/gui/paired-samples.ui b/src/ui/gui/paired-samples.ui index f952273987..107f5fb38a 100644 --- a/src/ui/gui/paired-samples.ui +++ b/src/ui/gui/paired-samples.ui @@ -1,144 +1,174 @@ - + + + - - + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK True - + True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 2 - + True - 5 - 5 - 5 + False + 5 + 5 + 5 + 5 + 5 - + True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + True + True + 0 + none - - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - never - automatic - etched-in - - + True + 12 True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - False - False - + etched-in + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + False + False + 2 + + + + - - 0 - - - + + True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0.059999998658895493 - 0 - - - True - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - True - 5 - paired-samples-t-test-treeview1 - paired-samples-t-test-treeview2 - - + _Test Pair(s): + True + True + paired-samples-t-test-treeview2 - - False - False - 1 - + + + 2 + 0 + + + + + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + True + center + center + 5 + paired-samples-t-test-treeview1 + paired-samples-t-test-treeview2 + + + 1 + 0 + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + True + never + etched-in - + True + True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - vertical - 5 - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 - none - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 12 - - - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - automatic - etched-in - - - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - False - False - 2 - - - - - - - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - _Test Pair(s): - True - True - paired-samples-t-test-treeview2 - - - - - 0 - - - - + 0 + False + False + single + + + + + + 0 + 0 + 2 + + + + + True + False + + + + + + 1 + 1 + + + + + True + False + True + vertical + start + + + O_ptions... + True + True + True + True + - 2 + True + True + 0 + + 2 + 1 + + True + True 0 True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 5 vertical @@ -147,7 +177,7 @@ False False end - 1 + 2 diff --git a/src/ui/gui/psppire-dialog-action-paired.c b/src/ui/gui/psppire-dialog-action-paired.c index a5ce1584a4..558e86f52c 100644 --- a/src/ui/gui/psppire-dialog-action-paired.c +++ b/src/ui/gui/psppire-dialog-action-paired.c @@ -164,10 +164,7 @@ psppire_dialog_action_paired_activate (GtkAction *a) } GtkWidget *selector = get_widget_assert (xml, "psppire-selector3"); - GtkWidget *bb = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL); - GtkWidget *button = gtk_button_new_with_mnemonic (_("O_ptions...")); - GtkWidget *box = get_widget_assert (xml, "vbox3"); - + GtkWidget *button = get_widget_assert (xml, "option-button"); pda->dialog = get_widget_assert (xml, "t-test-paired-samples-dialog"); pda->source = get_widget_assert (xml, "paired-samples-t-test-treeview1"); @@ -179,15 +176,9 @@ psppire_dialog_action_paired_activate (GtkAction *a) act->opt = tt_options_dialog_create (GTK_WINDOW (pda->toplevel)); - g_signal_connect_swapped (button, "clicked", G_CALLBACK (tt_options_dialog_run), act->opt); - - gtk_box_pack_start (GTK_BOX (bb), button, TRUE, TRUE, 5); - gtk_box_pack_start (GTK_BOX (box), bb, FALSE, FALSE, 5); - gtk_widget_show_all (box); - psppire_dialog_action_set_valid_predicate (pda, dialog_state_valid); psppire_dialog_action_set_refresh (pda, refresh); -- 2.30.2