[evince] shell: Remove GtkAlignment from license properties



commit 23aed3aee48142be3996e97b89bccdb14907f30f
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Tue Nov 13 13:16:49 2018 -0300

    shell: Remove GtkAlignment from license properties

 shell/ev-properties-license.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/shell/ev-properties-license.c b/shell/ev-properties-license.c
index a6bcdf78..b9bdc414 100644
--- a/shell/ev-properties-license.c
+++ b/shell/ev-properties-license.c
@@ -107,7 +107,6 @@ ev_properties_license_add_section (EvPropertiesLicense *properties,
                                   GtkWidget           *contents)
 {
        GtkWidget *title;
-       GtkWidget *alignment;
        gchar     *markup;
 
 
@@ -120,13 +119,10 @@ ev_properties_license_add_section (EvPropertiesLicense *properties,
        gtk_box_pack_start (GTK_BOX (properties), title, FALSE, FALSE, 0);
        gtk_widget_show (title);
 
-       alignment = gtk_alignment_new (0.5, 0.5, 1., 1.);
-       gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 0, 12, 0);
-       gtk_container_add (GTK_CONTAINER (alignment), contents);
-       gtk_widget_show (contents);
+       g_object_set (G_OBJECT (contents), "margin-left", 12, NULL);
 
-       gtk_box_pack_start (GTK_BOX (properties), alignment, FALSE, TRUE, 0);
-       gtk_widget_show (alignment);
+       gtk_box_pack_start (GTK_BOX (properties), contents, FALSE, TRUE, 0);
+       gtk_widget_show (contents);
 }
 
 void


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