Added logging capability if /tmp/drlaunch.log is present.
[drlaunch] / src / win_config.py
index 6d083b1..ba0eac2 100755 (executable)
@@ -130,9 +130,18 @@ class WinConfig(StackableWindow): #, FremantleRotation):
        # -----------------------------------------------
        # 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,
@@ -162,6 +171,7 @@ class WinConfig(StackableWindow): #, FremantleRotation):
        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)
@@ -331,6 +341,9 @@ class WinConfig(StackableWindow): #, FremantleRotation):
     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()
 
@@ -419,6 +432,7 @@ class WinConfig(StackableWindow): #, FremantleRotation):
        indiv=self.buttonRotateIndividually.get_active()
        lp=self.buttonRequireLongpress.get_active()
        ar=self.buttonAnimateRotation.get_active()
+       nobg=self.buttonNoBackground.get_active()
 
        ret={
            'size':         sz,
@@ -426,6 +440,7 @@ class WinConfig(StackableWindow): #, FremantleRotation):
            'indiv':        indiv,
            'longpress':    lp,
            'animate':      ar,
+           'nobg':         nobg,
            }
 
        return(ret)