[-,hwmixvolume,5/9] hwmixvolume: replace deprecated Gtk.HScale with Gtk.Scale
diff mbox series

Message ID 20180808155637.5592-6-linkmauve@jabberfr.org
State New
Headers show
Series
  • [-,hwmixvolume,1/9] hwmixvolume: replace PyGTK with gobject-introspection
Related show

Commit Message

Emmanuel Gil Peyrot Aug. 8, 2018, 3:56 p.m. UTC
Signed-off-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>

Patch
diff mbox series

diff --git a/hwmixvolume/hwmixvolume b/hwmixvolume/hwmixvolume
index e82f32d..af0c1e0 100755
--- a/hwmixvolume/hwmixvolume
+++ b/hwmixvolume/hwmixvolume
@@ -69,7 +69,7 @@  class Stream:
                     step_incr=1,
                     page_incr=(info.max-info.min+1)/8)
             adj.connect('value-changed', self.update_ctl_from_scale, i)
-            scale = Gtk.HScale(adj)
+            scale = Gtk.Scale(orientation=Gtk.Orientation.HORIZONTAL, adjustment=adj)
             scale.set_draw_value(False)
             self.parent.scales_vbox.add(scale)
             self.scales.append(scale)
@@ -207,7 +207,7 @@  class MixerWindow(Gtk.Window):
         label.set_single_line_mode(True)
         line_height = label.size_request().height
         label.destroy()
-        scale = Gtk.HScale()
+        scale = Gtk.Scale(orientation=Gtk.Orientation.HORIZONTAL)
         scale.set_draw_value(False)
         line_height += scale.size_request().height
         scale.destroy()