[nautilus] list-view: use widget properties instead of GtkAlignment



commit f81188efd53cf33b8f9b069a6c3f45c62a3f8637
Author: Ernestas Kulik <ernestas kulik gmail com>
Date:   Thu Apr 7 16:24:21 2016 +0300

    list-view: use widget properties instead of GtkAlignment
    
    GtkAlignment has been deprecated since GTK+ 3.14 and the use of
    halign, valign and margin properties is encouraged.
    
    This commit aligns widgets by use of said properties instead of the
    GtkAlignment widget.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=762238

 src/nautilus-list-view.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index 21b3ef2..208ae81 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -2629,7 +2629,6 @@ create_column_editor (NautilusListView *view)
        GtkWidget *label;
        GtkWidget *box;
        GtkWidget *column_chooser;
-       GtkWidget *alignment;
        NautilusFile *file;
        char *str;
        char *name;
@@ -2669,15 +2668,10 @@ create_column_editor (NautilusListView *view)
 
        g_free (str);
 
-       alignment = gtk_alignment_new (0.5, 0.5, 1, 1);
-       gtk_alignment_set_padding (GTK_ALIGNMENT (alignment),
-                                  0, 0, 12, 0);
-       gtk_widget_show (alignment);
-       gtk_box_pack_start (GTK_BOX (box), alignment, TRUE, TRUE, 0);
-
        column_chooser = nautilus_column_chooser_new (file);
+       gtk_widget_set_margin_start (column_chooser, 12);
        gtk_widget_show (column_chooser);
-       gtk_container_add (GTK_CONTAINER (alignment), column_chooser);
+       gtk_box_pack_start (GTK_BOX (box), column_chooser, TRUE, TRUE, 0);
 
        g_signal_connect (column_chooser, "changed",
                          G_CALLBACK (column_chooser_changed_callback),


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