Style the buttons correctly.
[tweakr] / modules / maemo-tweaks-mce.c
index 4435b4b..4a83f86 100644 (file)
@@ -195,6 +195,7 @@ GtkWidget * _build_short_power_key (MaemoTweaksMceSection *section)
 
     button = hildon_picker_button_new (HILDON_SIZE_AUTO,
                                        HILDON_BUTTON_ARRANGEMENT_VERTICAL);
+    hildon_gtk_widget_set_theme_size (button, HILDON_SIZE_FINGER_HEIGHT);
 
     hildon_button_set_title (HILDON_BUTTON (button),
                              "Power key: short press");
@@ -223,6 +224,7 @@ GtkWidget * _build_long_power_key (MaemoTweaksMceSection *section)
 
     button = hildon_picker_button_new (HILDON_SIZE_AUTO,
                                        HILDON_BUTTON_ARRANGEMENT_VERTICAL);
+    hildon_gtk_widget_set_theme_size (button, HILDON_SIZE_FINGER_HEIGHT);
 
     hildon_button_set_title (HILDON_BUTTON (button),
                              "Power key: long press");
@@ -251,6 +253,7 @@ GtkWidget * _build_double_power_key (MaemoTweaksMceSection *section)
 
     button = hildon_picker_button_new (HILDON_SIZE_AUTO,
                                        HILDON_BUTTON_ARRANGEMENT_VERTICAL);
+    hildon_gtk_widget_set_theme_size (button, HILDON_SIZE_FINGER_HEIGHT);
 
     hildon_button_set_title (HILDON_BUTTON (button),
                              "Power key: double press");
@@ -331,11 +334,11 @@ maemo_tweaks_mce_section_init (MaemoTweaksMceSection *section)
     iface->name = "Mce";
     iface->widget = gtk_vbox_new (FALSE, 0);
     gtk_box_pack_start (GTK_BOX (iface->widget), section->short_power_key,
-                        TRUE, TRUE, 0);
+                        FALSE, FALSE, 0);
     gtk_box_pack_start (GTK_BOX (iface->widget), section->long_power_key,
-                        TRUE, TRUE, 0);
+                        FALSE, FALSE, 0);
     gtk_box_pack_start (GTK_BOX (iface->widget), section->double_power_key,
-                        TRUE, TRUE, 0);
+                        FALSE, FALSE, 0);
 }
 
 static void