Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2701175pxb; Sun, 3 Oct 2021 03:22:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYfqd0F5ToL2JsdjrDaLKXWFW5b2PE2kTMELT8e3ut2NFyRThJZ8hMkJaSO+DBpi03Ua/I X-Received: by 2002:a05:6a00:c81:b029:30e:21bf:4c15 with SMTP id a1-20020a056a000c81b029030e21bf4c15mr18842703pfv.70.1633256523870; Sun, 03 Oct 2021 03:22:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633256523; cv=none; d=google.com; s=arc-20160816; b=z39QV6J1a+MTuvL2KO36wVQjVM/cuwVWBLH/2k2yf/BMUlFv7ZjYgyd4VIGsnYG+qQ nrFhbAu76pTbf21qwPvfS7NU/ZOyaoOGwzw++e0zBWMEywekgQ1utYFKSjWPhGon5r+S rqImbdOu598VkyyWip9F2neEH0XkkBJW7e/64KaLk+HOJZ70q80Vb4NdpzIuWx7ILSOa GwircBvL3pWEek8CclDbasUnYRd/VeyzcC7A1WqJ4lksdJHCMUAMCcuJDOR6bw0B2sIB lNK6fCTiB34G3L5xwfod039fBa2cN7vV5zwRoOeiDV+aJ8xaE7jxGntj38rPlTv5edf3 9Xvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:dkim-signature:from; bh=HZikxAO1mFdkJZGtmHzJIgfrRT0SBvDZBmMehz8jgZA=; b=vI0P58uHzOK+Xs3blbFdU2ChSawuOC638awT2soe1wSXiA64hSbXqJWIveScts/A+w St3lmLV1f1enKI/lcs7b3+yogV9itC+zNG0Exp2jAd8C7nMoF4CjkmkquSxDJ9yhbAVs t0B/ZCp9K42Pnkk0NFS7Y5SHbnJB8VYmHsZll82R8WslRAhVK1Ha16AQcqpB6WCaSDSG 4KD3HQ5xqzbq4jzDax+VJWXVc7LzbGljGlBckrKRydja9WckhdX2oVa8uojrgdKj+Zdm AOwl9V3Ed/xyMX2V6dG2b4r7ATgacJSsYgWifi7WuVnC1dDe8e0e4lTO+vb66oHGkzko M4yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@t-8ch.de header.s=mail header.b=Yf8RQxiw; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h22si15802667pgk.421.2021.10.03.03.21.21; Sun, 03 Oct 2021 03:22:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@t-8ch.de header.s=mail header.b=Yf8RQxiw; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229940AbhJCKVD (ORCPT + 99 others); Sun, 3 Oct 2021 06:21:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230075AbhJCKVA (ORCPT ); Sun, 3 Oct 2021 06:21:00 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2826FC061780 for ; Sun, 3 Oct 2021 03:19:11 -0700 (PDT) From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=t-8ch.de; s=mail; t=1633256347; bh=mp7dZypWt3wKCO7N16QhLoA3VAxzpjiyGc49Cau5Kdw=; h=From:To:Cc:Subject:Date:From; b=Yf8RQxiwqi3cGkd0VX7xObRjI9Snx0K9B1Jrt+zrpkVJRwe4vu+JTV3WjgQvYH1gp XCbJSUylN13Ll2gcAflgb3KM7iq81Toi6Td/3KMnthPEUuQOvzM/5LSIDj0FDLmpVl wSOtxpR1MDcC9Ux+M+5kIZd8eP/kMFxi3QrmkTOE= To: linux-bluetooth@vger.kernel.org Cc: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Subject: [PATCH BlueZ] Use accurate icons for headphones and headsets Date: Sun, 3 Oct 2021 12:18:34 +0200 Message-Id: <20211003101834.45448-1-thomas@t-8ch.de> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org While these icon names are not part of the spec standard names [0] they are in practice implemented by at least Adwaita, Gnome, Oxygen, Arc and Breeze themes. [0] https://specifications.freedesktop.org/icon-naming-spec/latest/ar01s04.html --- src/dbus-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dbus-common.c b/src/dbus-common.c index 384f27700..5e2c83d52 100644 --- a/src/dbus-common.c +++ b/src/dbus-common.c @@ -72,9 +72,9 @@ const char *class_to_icon(uint32_t class) switch ((class & 0xfc) >> 2) { case 0x01: case 0x02: - return "audio-card"; /* Headset */ + return "audio-headset"; case 0x06: - return "audio-card"; /* Headphone */ + return "audio-headphones"; case 0x0b: /* VCR */ case 0x0c: /* Video Camera */ case 0x0d: /* Camcorder */ base-commit: c1e6d6c46fcab55ec820bb83396fff57ffd22e26 -- 2.33.0