~ci-train-bot/compiz/compiz-ubuntu-trusty-landing-070

« back to all changes in this revision

Viewing changes to compizconfig/ccsm/ccm/Settings.py

  • Committer: CI bot
  • Author(s): Chris Townsend
  • Date: 2014-04-23 14:55:34 UTC
  • mfrom: (3856.2.1 compiz.commit)
  • Revision ID: ps-jenkins@lists.canonical.com-20140423145534-wswzjxoq00y4t2p8
Due to some change in Gtk SpinButton, setting the initial value in Adjustment does not work for integers, so now just explicitly set the value after the SpinButton is created. Fixes: 1294341

Show diffs side-by-side

added added

removed removed

Lines of Context:
439
439
            self.Inc = info[2]
440
440
        inc = self.Inc
441
441
        self.NoneValue = info[0]
442
 
        self.Adj = gtk.Adjustment(self.Get(), info[0], info[1], inc, inc*10)
 
442
        self.Adj = gtk.Adjustment(0, info[0], info[1], inc, inc*10)
443
443
        self.Spin = gtk.SpinButton(self.Adj)
 
444
        self.Spin.set_value(self.Get())
444
445
 
445
446
        self.Scale = gtk.HScale(self.Adj)
446
447