[evince/wip/gpoo/gtk4-preparation: 15/16] shell: Prepare properties license tab for gtk4




commit 6b0f65b70d37229c48fd659cc891088bb83b67f9
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Sat Mar 5 00:29:49 2022 -0300

    shell: Prepare properties license tab for gtk4
    
    Co-authored-by: Qiu Wenbo <qiuwenbo kylinos com cn>

 shell/ev-properties-license.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/shell/ev-properties-license.c b/shell/ev-properties-license.c
index b9bdc414a..5a1cf9685 100644
--- a/shell/ev-properties-license.c
+++ b/shell/ev-properties-license.c
@@ -177,18 +177,18 @@ ev_properties_license_set_license (EvPropertiesLicense *properties,
 static void
 ev_properties_license_init (EvPropertiesLicense *properties)
 {
+       gtk_orientable_set_orientation (GTK_ORIENTABLE (properties),
+                       GTK_ORIENTATION_VERTICAL);
        gtk_box_set_spacing (GTK_BOX (properties), 12);
-       gtk_container_set_border_width (GTK_CONTAINER (properties), 12);
+
+       gtk_widget_set_margin_top (GTK_WIDGET (properties), 12);
+       gtk_widget_set_margin_bottom (GTK_WIDGET (properties), 12);
+       gtk_widget_set_margin_start (GTK_WIDGET (properties), 12);
+       gtk_widget_set_margin_end (GTK_WIDGET (properties), 12);
 }
 
 GtkWidget *
 ev_properties_license_new (void)
 {
-       EvPropertiesLicense *properties_license;
-
-       properties_license = g_object_new (EV_TYPE_PROPERTIES_LICENSE,
-                                          "orientation", GTK_ORIENTATION_VERTICAL,
-                                          NULL);
-
-       return GTK_WIDGET (properties_license);
+       return GTK_WIDGET (g_object_new (EV_TYPE_PROPERTIES_LICENSE, NULL));
 }


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