summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-08-20 21:33:56 +0200
committerZenWalker <[email protected]>2018-08-21 16:53:23 +0200
commit320a44d23c9c8209042d7df2161e9fadd4a478cc (patch)
treee6bfb1ecacbc09e073f8035c7d2a879a79f33f45
parent957fc585cb9a1edd2ea4ae73f5c03896b35736d3 (diff)
downloadpluma-320a44d23c9c8209042d7df2161e9fadd4a478cc.tar.bz2
pluma-320a44d23c9c8209042d7df2161e9fadd4a478cc.tar.xz
close-confirmation-dialog: Fix: don't resize the dialog unexpectedly
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 21c27a08..79f5be21 100644
--- a/pluma/dialogs/pluma-close-confirmation-dialog.c
+++ b/pluma/dialogs/pluma-close-confirmation-dialog.c
@@ -776,7 +776,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