From 5b8958e296c2149d79fa022549be3e8de545db14 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Mon, 20 Aug 2018 21:33:56 +0200 Subject: close-confirmation-dialog: Fix: don't resize the dialog unexpectedly Fixes https://github.com/mate-desktop/pluma/issues/356 --- pluma/dialogs/pluma-close-confirmation-dialog.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pluma/dialogs/pluma-close-confirmation-dialog.c') diff --git a/pluma/dialogs/pluma-close-confirmation-dialog.c b/pluma/dialogs/pluma-close-confirmation-dialog.c index 9eca2c2c..8f78dbf8 100644 --- a/pluma/dialogs/pluma-close-confirmation-dialog.c +++ b/pluma/dialogs/pluma-close-confirmation-dialog.c @@ -787,7 +787,11 @@ build_multiple_docs_dialog (PlumaCloseConfirmationDialog *dlg) gtk_label_set_mnemonic_widget (GTK_LABEL (select_label), treeview); - gtk_widget_show_all (hbox); + gtk_widget_show_all (hbox); + + int new_width, new_height; + gtk_window_get_size (GTK_WINDOW (GTK_DIALOG (dlg)), &new_width, &new_height); + gtk_window_set_default_size (GTK_WINDOW (GTK_DIALOG (dlg)), new_width, new_height); } static void -- cgit v1.2.1