From 4b067c7391b48b471b2503e62fd9ec760e7e7eee Mon Sep 17 00:00:00 2001 From: John Darrington Date: Thu, 11 Oct 2007 12:31:39 +0000 Subject: [PATCH] Added some missing calls to gtk_window_set_transient_for --- src/ui/gui/split-file-dialog.c | 2 ++ src/ui/gui/t-test-independent-samples-dialog.c | 15 ++++++++++----- src/ui/gui/transpose-dialog.c | 2 ++ 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/ui/gui/split-file-dialog.c b/src/ui/gui/split-file-dialog.c index 3431b35e..755f79d0 100644 --- a/src/ui/gui/split-file-dialog.c +++ b/src/ui/gui/split-file-dialog.c @@ -215,6 +215,8 @@ split_file_dialog (GObject *o, gpointer data) g_signal_connect (dialog, "refresh", G_CALLBACK (refresh), &sfd); + gtk_window_set_transient_for (GTK_WINDOW (dialog), de->parent.window); + response = psppire_dialog_run (PSPPIRE_DIALOG (dialog)); diff --git a/src/ui/gui/t-test-independent-samples-dialog.c b/src/ui/gui/t-test-independent-samples-dialog.c index 1e514930..1468bd01 100644 --- a/src/ui/gui/t-test-independent-samples-dialog.c +++ b/src/ui/gui/t-test-independent-samples-dialog.c @@ -40,6 +40,7 @@ struct tt_indep_samples_dialog { GladeXML *xml; /* The xml that generated the widgets */ + GtkWidget *dialog; PsppireDict *dict; gboolean groups_defined; gboolean non_default_options; @@ -149,6 +150,8 @@ run_define_groups (struct tt_indep_samples_dialog *ttd) psppire_dialog_set_valid_predicate (PSPPIRE_DIALOG (dialog), define_groups_state_valid, ttd); + gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (ttd->dialog)); + response = psppire_dialog_run (PSPPIRE_DIALOG (dialog)); ttd->groups_defined = (response == PSPPIRE_RESPONSE_CONTINUE); @@ -177,6 +180,8 @@ run_options (struct tt_indep_samples_dialog *ttd) gtk_box_pack_start_defaults (GTK_BOX (box), confidence); + gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (ttd->dialog)); + response = psppire_dialog_run (PSPPIRE_DIALOG (dialog)); if ( response == PSPPIRE_RESPONSE_CONTINUE) @@ -229,7 +234,7 @@ t_test_independent_samples_dialog (GObject *o, gpointer data) GladeXML *xml = XML_NEW ("t-test.glade"); - GtkWidget *dialog = get_widget_assert (xml, + tt_d.dialog = get_widget_assert (xml, "t-test-independent-samples-dialog"); GtkSheet *var_sheet = @@ -265,7 +270,7 @@ t_test_independent_samples_dialog (GObject *o, gpointer data) tt_d.non_default_options = FALSE; tt_d.confidence_interval = 95.0; - gtk_window_set_transient_for (GTK_WINDOW (dialog), de->parent.window); + gtk_window_set_transient_for (GTK_WINDOW (tt_d.dialog), de->parent.window); attach_dictionary_to_treeview (GTK_TREE_VIEW (dict_view), vs->dict, @@ -293,13 +298,13 @@ t_test_independent_samples_dialog (GObject *o, gpointer data) G_CALLBACK (run_options), &tt_d); - g_signal_connect_swapped (dialog, "refresh", G_CALLBACK (refresh), xml); + g_signal_connect_swapped (tt_d.dialog, "refresh", G_CALLBACK (refresh), xml); - psppire_dialog_set_valid_predicate (PSPPIRE_DIALOG (dialog), + psppire_dialog_set_valid_predicate (PSPPIRE_DIALOG (tt_d.dialog), dialog_state_valid, &tt_d); - response = psppire_dialog_run (PSPPIRE_DIALOG (dialog)); + response = psppire_dialog_run (PSPPIRE_DIALOG (tt_d.dialog)); switch (response) { diff --git a/src/ui/gui/transpose-dialog.c b/src/ui/gui/transpose-dialog.c index cc2ac6dd..2c16c18d 100644 --- a/src/ui/gui/transpose-dialog.c +++ b/src/ui/gui/transpose-dialog.c @@ -95,6 +95,8 @@ transpose_dialog (GObject *o, gpointer data) g_signal_connect (dialog, "refresh", G_CALLBACK (refresh), xml); + gtk_window_set_transient_for (GTK_WINDOW (dialog), de->parent.window); + response = psppire_dialog_run (PSPPIRE_DIALOG (dialog)); switch (response) -- 2.30.2