Align query window widgets according to Fremantle Master Layout Guide
authorPhilipp Zabel <philipp.zabel@gmail.com>
Sat, 1 May 2010 08:59:04 +0000 (10:59 +0200)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Sat, 1 May 2010 09:05:00 +0000 (11:05 +0200)
src/query-window.vala

index 3ec6488..1ab7e49 100644 (file)
@@ -67,6 +67,10 @@ public class QueryWindow : StackableWindow {
                for (int days = 0; days <= 4; days += 1)
                        tolerance_selector.append_text (_("+/- %d days").printf (days));
 
+               var alignment = new Alignment (0.0f, 0.0f, 1.0f, 1.0f);
+               alignment.top_padding = MARGIN_HALF;
+               alignment.left_padding = MARGIN_DOUBLE;
+               alignment.right_padding = MARGIN_DOUBLE;
                var table = new Table (5, 2, false);
 
                var button = new PickerButton (SizeType.FINGER_HEIGHT,
@@ -133,7 +137,8 @@ public class QueryWindow : StackableWindow {
                Hildon.gtk_widget_set_theme_size (search_button, SizeType.FINGER_HEIGHT);
                table.attach (search_button, 0, 2, 4, 5, AttachOptions.FILL, AttachOptions.FILL, 0, 0);
 
-               add (table);
+               alignment.add (table);
+               add (alignment);
 
                switch_button.clicked.connect (on_switch_button_clicked);
                search_button.clicked.connect (on_search_button_clicked);