[balsa/gtk4: 230/298] Various: GtkFrame is not a GtkBox




commit 153ec85961da2b45c841d56bb712ad66cef38a9e
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Fri Oct 23 11:02:34 2020 -0400

    Various: GtkFrame is not a GtkBox
    
    modified:   libbalsa/identity.c
    modified:   src/ab-window.c

 libbalsa/identity.c | 10 +++++++---
 src/ab-window.c     |  2 +-
 2 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/libbalsa/identity.c b/libbalsa/identity.c
index c474d2989..ef99eba04 100644
--- a/libbalsa/identity.c
+++ b/libbalsa/identity.c
@@ -389,8 +389,12 @@ libbalsa_identity_select_dialog(GtkWindow * parent,
     gtk_box_append(GTK_BOX
                        (gtk_dialog_get_content_area(GTK_DIALOG(dialog))),
                        frame);
-    gtk_box_append(GTK_BOX(frame), tree);
-    g_object_set(frame, "amrgin", padding, NULL);
+    gtk_frame_set_child(GTK_FRAME(frame), tree);
+
+    gtk_widget_set_margin_top(frame, padding);
+    gtk_widget_set_margin_bottom(frame, padding);
+    gtk_widget_set_margin_start(frame, padding);
+    gtk_widget_set_margin_end(frame, padding);
 
     gtk_widget_show(dialog);
     gtk_widget_grab_focus(tree);
@@ -645,7 +649,7 @@ libbalsa_identity_config_frame(GList** identities,
     g_object_set_data(G_OBJECT(tree), "callback", cb);
     g_object_set_data(G_OBJECT(tree), "cb-data",  data);
 
-    gtk_box_append(GTK_BOX(config_frame), tree);
+    gtk_frame_set_child(GTK_FRAME(config_frame), tree);
 
     identity_list_update(GTK_TREE_VIEW(tree));
 
diff --git a/src/ab-window.c b/src/ab-window.c
index e588dead7..5ea8930b6 100644
--- a/src/ab-window.c
+++ b/src/ab-window.c
@@ -404,7 +404,7 @@ balsa_ab_window_init(BalsaAbWindow *ab)
 
 
     frame = gtk_frame_new(_("Treat multiple addresses as:"));
-    gtk_box_append(GTK_BOX(frame), box2);
+    gtk_frame_set_child(GTK_FRAME(frame), box2);
 
     gtk_widget_set_margin_top(frame, 1);
     gtk_widget_set_margin_bottom(frame, 1);


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