+ def zoomdialog ( self , widget , conf , extra=None ) :
+ conf.zoom = int( widget.get_selector().get_current_text() )
+
+ def ZoomButton ( self , text , config , handler ) :
+ selector = ZoomDialog( config )
+ button = hildon.PickerButton( gtk.HILDON_SIZE_AUTO, hildon.BUTTON_ARRANGEMENT_VERTICAL)
+ button.set_title( text )
+ button.set_selector( selector )
+ button.connect_object( "value-changed", self.zoomdialog , button , config , handler )
+ return button
+