Add PannableArea to display settings
authorandrei1089 <andrei.mirestean@gmail.com>
Mon, 1 Feb 2010 18:44:43 +0000 (20:44 +0200)
committerandrei1089 <andrei.mirestean@gmail.com>
Mon, 1 Feb 2010 18:44:43 +0000 (20:44 +0200)
core
pedometer_widget_home.py

diff --git a/core b/core
index 001cfd7..d708e20 100644 (file)
Binary files a/core and b/core differ
index 9e53b45..f6816bd 100644 (file)
@@ -552,13 +552,18 @@ class PedometerHomePlugin(hildondesktop.HomePluginItem):
         logButton.set_active(widget.logging)
         logButton.connect("toggled", logButton_changed)
 
-        dialog.vbox.add(button)
-        dialog.vbox.add(modePicker)
-        dialog.vbox.add(heightPicker)
-        dialog.vbox.add(unitPicker)
-        dialog.vbox.add(UIPicker)
-        dialog.vbox.add(logButton)
-
+        pan_area = hildon.PannableArea()
+        vbox = gtk.VBox()
+        vbox.add(button)
+        vbox.add(modePicker)
+        vbox.add(heightPicker)
+        vbox.add(unitPicker)
+        vbox.add(UIPicker)
+        vbox.add(logButton)
+
+        pan_area.add_with_viewport(vbox)
+        pan_area.set_size_request(-1, 600)
+        dialog.vbox.add(pan_area)
         dialog.show_all()
         response = dialog.run()
         #hildon.hildon_banner_show_information(self, "None", "You have to Stop/Start the counter to apply the new settings")