Skip to content

Commit 320a44d

Browse files
committed
close-confirmation-dialog: Fix: don't resize the dialog unexpectedly
Fixes #356
1 parent 957fc58 commit 320a44d

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
@@ -776,7 +776,11 @@ build_multiple_docs_dialog (PlumaCloseConfirmationDialog *dlg)
776776

777777
gtk_label_set_mnemonic_widget (GTK_LABEL (select_label), treeview);
778778

779-
gtk_widget_show_all (hbox);
779+
gtk_widget_show_all (hbox);
780+
781+
int new_width, new_height;
782+
gtk_window_get_size (GTK_WINDOW (GTK_DIALOG (dlg)), &new_width, &new_height);
783+
gtk_window_set_default_size (GTK_WINDOW (GTK_DIALOG (dlg)), new_width, new_height);
780784
}
781785

782786
static void

0 commit comments

Comments
 (0)