Skip to content

Commit 315ab11

Browse files
committed
close-confirmation-dialog: Fix: don't resize the dialog unexpectedly
Fixes #356
1 parent 9cb7cae commit 315ab11

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pluma/dialogs/pluma-close-confirmation-dialog.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,11 @@ build_multiple_docs_dialog (PlumaCloseConfirmationDialog *dlg)
767767

768768
gtk_label_set_mnemonic_widget (GTK_LABEL (select_label), treeview);
769769

770-
gtk_widget_show_all (hbox);
770+
gtk_widget_show_all (hbox);
771+
772+
int new_width, new_height;
773+
gtk_window_get_size (GTK_WINDOW (GTK_DIALOG (dlg)), &new_width, &new_height);
774+
gtk_window_set_default_size (GTK_WINDOW (GTK_DIALOG (dlg)), new_width, new_height);
771775
}
772776

773777
static void

0 commit comments

Comments
 (0)