# -----------------------------------------------
# Second column of options
vbox=gtk.VBox()
+
al=gtk.Alignment(xalign=0, yalign=1, xscale=1)
al.add(vbox)
self.col2=al
+
+ but=hildon.CheckButton(
+ gtk.HILDON_SIZE_AUTO_WIDTH | gtk.HILDON_SIZE_FINGER_HEIGHT)
+ but.set_label("No background")
+ #but.connect('toggled', self.slotButtonNoBackground)
+ self.buttonNoBackground=but
+ vbox.add(but)
+
#1 hbox.add(al)
but=hildon.Button(
gtk.HILDON_SIZE_AUTO_WIDTH | gtk.HILDON_SIZE_FINGER_HEIGHT,
self.setIndiv(self.config.getIndiv())
self.setLongpress(self.config.getLongpress())
self.setAnimate(self.config.getAnimate())
+ self.setNoBg(self.config.getNoBg())
hbox=gtk.HBox()
hbox.add(self.col1)
def setAnimate(self, ar):
self.buttonAnimateRotation.set_active(ar)
+ def setNoBg(self, nobg):
+ self.buttonNoBackground.set_active(nobg)
+
def doConfig(self, icon):
aps=apps.scan()
indiv=self.buttonRotateIndividually.get_active()
lp=self.buttonRequireLongpress.get_active()
ar=self.buttonAnimateRotation.get_active()
+ nobg=self.buttonNoBackground.get_active()
ret={
'size': sz,
'indiv': indiv,
'longpress': lp,
'animate': ar,
+ 'nobg': nobg,
}
return(ret)