[gtk/fix-custom-paper-dialog] Fix the custom paper dialog
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/fix-custom-paper-dialog] Fix the custom paper dialog
- Date: Fri, 12 Jun 2020 12:47:40 +0000 (UTC)
commit e6dcd5548018ca68464e21b553604f243a37bab4
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jun 12 08:46:18 2020 -0400
Fix the custom paper dialog
This broke during the container removal.
gtk/gtkcustompaperunixdialog.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcustompaperunixdialog.c b/gtk/gtkcustompaperunixdialog.c
index 5948cdeb27..e1aa296b1b 100644
--- a/gtk/gtkcustompaperunixdialog.c
+++ b/gtk/gtkcustompaperunixdialog.c
@@ -977,13 +977,13 @@ wrap_in_frame (const gchar *label,
g_free (bold_text);
frame = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
- gtk_frame_set_child (GTK_FRAME (frame), label_widget);
+ gtk_box_append (GTK_BOX (frame), label_widget);
gtk_widget_set_margin_start (child, 12);
gtk_widget_set_halign (child, GTK_ALIGN_FILL);
gtk_widget_set_valign (child, GTK_ALIGN_FILL);
- gtk_frame_set_child (GTK_FRAME (frame), child);
+ gtk_box_append (GTK_BOX (frame), child);
gtk_widget_show (frame);
@@ -1020,6 +1020,7 @@ populate_dialog (GtkCustomPaperUnixDialog *dialog)
gtk_widget_show (vbox);
scrolled = gtk_scrolled_window_new (NULL, NULL);
+ gtk_widget_set_vexpand (scrolled, TRUE);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled),
GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_set_has_frame (GTK_SCROLLED_WINDOW (scrolled), TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]