[shotwell/wip/dedeprecate: 15/26] wip: SearchFilter



commit d5f8fde85166ccfca7b9825db6cbbbb166d99114
Author: Jens Georg <mail jensge org>
Date:   Fri Oct 21 17:49:10 2016 +0200

    wip: SearchFilter
    
    Signed-off-by: Jens Georg <mail jensge org>

 src/SearchFilter.vala |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/src/SearchFilter.vala b/src/SearchFilter.vala
index d9fe0fe..5fcf76f 100644
--- a/src/SearchFilter.vala
+++ b/src/SearchFilter.vala
@@ -678,14 +678,12 @@ public class SearchFilterToolbar : Gtk.Revealer {
         public LabelToolItem(string s, int left_padding = 0, int right_padding = 0) {
             label = new Gtk.Label(s);
             if (left_padding != 0 || right_padding != 0) {
-                Gtk.Alignment alignment = new Gtk.Alignment(0, 0.5f, 0, 0);
-                alignment.add(label);
-                alignment.left_padding = left_padding;
-                alignment.right_padding = right_padding;
-                add(alignment);
-            } else {
-                add(label);
+                label.halign = Gtk.Align.START;
+                label.valign = Gtk.Align.CENTER;
+                label.margin_start = left_padding;
+                label.margin_end = right_padding;
             }
+            add (label);
         }
     }
     


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