[gtranslator: 4/15] assistant: Replace remaining container API




commit cf56963f4d0fcdd40e3f8132f1ca19a223904825
Author: Maximiliano Sandoval R <msandova gnome org>
Date:   Wed Mar 16 10:42:22 2022 +0100

    assistant: Replace remaining container API
    
    Margins of 5 were replaced by 6 since it is recommended to always use
    multiples of 6 for margins.

 src/gtr-assistant.c | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/src/gtr-assistant.c b/src/gtr-assistant.c
index 127b90dd..ecb62ec1 100644
--- a/src/gtr-assistant.c
+++ b/src/gtr-assistant.c
@@ -162,7 +162,10 @@ create_start_page (GtrAssistant * as)
 
   box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
   gtk_widget_show (box);
-  gtk_container_set_border_width (GTK_CONTAINER (box), 12);
+  gtk_widget_set_margin_start (box, 12);
+  gtk_widget_set_margin_end (box, 12);
+  gtk_widget_set_margin_top (box, 12);
+  gtk_widget_set_margin_bottom (box, 12);
 
   label = gtk_label_new (_("This assistant will help you to create the main profile."));
   gtk_widget_show (label);
@@ -246,7 +249,10 @@ create_profiles_page1 (GtrAssistant * as)
 
   box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
   gtk_widget_show (box);
-  gtk_container_set_border_width (GTK_CONTAINER (box), 5);
+  gtk_widget_set_margin_start (box, 6);
+  gtk_widget_set_margin_end (box, 6);
+  gtk_widget_set_margin_top (box, 6);
+  gtk_widget_set_margin_bottom (box, 6);
 
   gtk_widget_set_valign (box, GTK_ALIGN_CENTER);
   gtk_widget_set_halign (box, GTK_ALIGN_CENTER);
@@ -428,7 +434,11 @@ create_profiles_page2 (GtrAssistant * as)
 
   priv->languages_fetcher = gtr_languages_fetcher_new ();
   gtk_widget_show (priv->languages_fetcher);
-  gtk_container_set_border_width (GTK_CONTAINER (priv->languages_fetcher), 5);
+  gtk_widget_set_margin_start (priv->languages_fetcher, 6);
+  gtk_widget_set_margin_end (priv->languages_fetcher, 6);
+  gtk_widget_set_margin_top (priv->languages_fetcher, 6);
+  gtk_widget_set_margin_bottom (priv->languages_fetcher, 6);
+
   g_signal_connect (priv->languages_fetcher, "changed",
                     G_CALLBACK (on_profile2_entry_changed),
                     as);


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