From patchwork Wed Aug 8 15:56:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emmanuel Gil Peyrot X-Patchwork-Id: 10563613 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F2A16157B for ; Sun, 12 Aug 2018 06:04:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E05F0284C7 for ; Sun, 12 Aug 2018 06:04:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D31D22962E; Sun, 12 Aug 2018 06:04:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6294F284C7 for ; Sun, 12 Aug 2018 06:04:25 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 9FF2C2677AE; Sun, 12 Aug 2018 08:03:53 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id E78202678DB; Wed, 8 Aug 2018 17:56:49 +0200 (CEST) Received: from jabberfr.org (jabberfr.org [62.210.214.37]) by alsa0.perex.cz (Postfix) with ESMTP id 0F23A2678DA; Wed, 8 Aug 2018 17:56:47 +0200 (CEST) Received: from localhost (jabberfr.org [local]) by jabberfr.org (OpenSMTPD) with ESMTPA id e7a5a10e; Wed, 8 Aug 2018 15:56:39 +0000 (UTC) From: Emmanuel Gil Peyrot To: patch@alsa-project.org Date: Wed, 8 Aug 2018 17:56:33 +0200 Message-Id: <20180808155637.5592-6-linkmauve@jabberfr.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180808155637.5592-1-linkmauve@jabberfr.org> References: <20180808155637.5592-1-linkmauve@jabberfr.org> X-Mailman-Approved-At: Sun, 12 Aug 2018 08:03:43 +0200 Cc: Emmanuel Gil Peyrot , Emmanuel Gil Peyrot , alsa-devel@alsa-project.org Subject: [alsa-devel] [PATCH - hwmixvolume 5/9] hwmixvolume: replace deprecated Gtk.HScale with Gtk.Scale X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Emmanuel Gil Peyrot 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()