summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-08-20 21:33:56 +0200
committerPablo Barciela <[email protected]>2018-08-21 19:10:22 +0200
commit5b8958e296c2149d79fa022549be3e8de545db14 (patch)
tree1721550870bb9a8c7a931f0c735ab140beb53bfc
parent708bfc0c84daf1f3a44ab3f0d87845f9a1429b5d (diff)
downloadpluma-1.18.tar.bz2
pluma-1.18.tar.xz
close-confirmation-dialog: Fix: don't resize the dialog unexpectedly1.18
Fixes https://github.com/mate-desktop/pluma/issues/356
-rw-r--r--pluma/dialogs/pluma-close-confirmation-dialog.c6
1 files changed, 5 insertions, 1 deletions
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