[balsa/gtk4: 131/298] x509-cert-widget: Use container-add for scrolled w




commit ce63dd70eb06910b0f1fe29c176e65f88ded1155
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sun Jun 7 13:31:19 2020 -0400

    x509-cert-widget: Use container-add for scrolled w

 libbalsa/x509-cert-widget.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libbalsa/x509-cert-widget.c b/libbalsa/x509-cert-widget.c
index fa96b8afd..6e8df2299 100644
--- a/libbalsa/x509-cert-widget.c
+++ b/libbalsa/x509-cert-widget.c
@@ -165,9 +165,9 @@ create_chain_widget(GList *cert_list)
        scrolledwin = gtk_scrolled_window_new(NULL, NULL);
         gtk_widget_set_vexpand(scrolledwin, TRUE);
         gtk_widget_set_valign(scrolledwin, GTK_ALIGN_FILL);
-        gtk_widget_set_margin_start(scrolledwin, 6U);
-        gtk_widget_set_margin_end(scrolledwin, 6U);
-       gtk_box_pack_start(GTK_BOX(vbox), scrolledwin, FALSE, FALSE, 0U);
+        gtk_widget_set_margin_top(scrolledwin, 6U);
+        gtk_widget_set_margin_bottom(scrolledwin, 6U);
+        gtk_container_add(GTK_CONTAINER(vbox), scrolledwin);
 
        store = gtk_tree_store_new(CERT_COLUMNS, G_TYPE_STRING, GTK_TYPE_WIDGET);
        tree_view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store));
@@ -183,8 +183,8 @@ create_chain_widget(GList *cert_list)
        stack = gtk_stack_new();
         gtk_widget_set_vexpand(stack, TRUE);
         gtk_widget_set_valign(stack, GTK_ALIGN_FILL);
-        gtk_widget_set_margin_start(stack, 6U);
-        gtk_widget_set_margin_end(stack, 6U);
+        gtk_widget_set_margin_top(stack, 6U);
+        gtk_widget_set_margin_bottom(stack, 6U);
        gtk_box_pack_start(GTK_BOX(vbox), stack, FALSE, FALSE, 0U);
        g_signal_connect(tree_view, "row-activated", G_CALLBACK(cert_selected_cb), stack);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]