~townsend/compiz/fix-lp1244754-0.9.10

« back to all changes in this revision

Viewing changes to debian/patches/ccsm_remove_redundant_sliders.patch

first packaging

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
=== modified file 'ccm/Settings.py'
 
2
diff -Nur -x '*.orig' -x '*~' a/compizconfig/ccsm/ccm/Settings.py b/compizconfig/Settings.py
 
3
--- a/compizconfig/ccsm/ccm/Settings.py 2011-08-22 13:38:46.000000000 +0200
 
4
+++ b/compizconfig/ccsm/ccm/Settings.py 2012-02-01 12:44:46.254767412 +0100
 
5
@@ -441,16 +441,10 @@
 
6
         self.NoneValue = info[0]
 
7
         self.Adj = gtk.Adjustment(self.Get(), info[0], info[1], inc, inc*10)
 
8
         self.Spin = gtk.SpinButton(self.Adj)
 
9
-
 
10
-        self.Scale = gtk.HScale(self.Adj)
 
11
-
 
12
-        self.Scale.set_update_policy(gtk.UPDATE_DISCONTINUOUS)
 
13
-        self.Scale.connect("value-changed", self.Changed)
 
14
         self.Spin.connect("value-changed", self.Changed)
 
15
-        self.Widget = self.Scale
 
16
+        self.Widget = self.Spin
 
17
 
 
18
-        self.Box.pack_start(self.Scale, True, True)
 
19
-        self.Box.pack_start(self.Spin, False, False)
 
20
+        self.Box.pack_end(self.Spin, False, False)
 
21
 
 
22
     def _Read(self):
 
23
         self.Adj.set_value(self.Get())
 
24
@@ -464,7 +458,6 @@
 
25
         self.Inc = 1
 
26
         NumberSetting._Init(self)
 
27
         self.Spin.set_digits(0)
 
28
-        self.Scale.set_digits(0)
 
29
 
 
30
 class FloatSetting(NumberSetting):
 
31
 
 
32
@@ -474,7 +467,6 @@
 
33
         self.Inc = None
 
34
         NumberSetting._Init(self)
 
35
         self.Spin.set_digits(4)
 
36
-        self.Scale.set_digits(4)
 
37
 
 
38
 
 
39
 class ColorSetting(StockSetting):