Authentication-Results: mail-b.sr.ht; dkim=pass header.d=gmx.net header.i=@gmx.net Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by mail-b.sr.ht (Postfix) with ESMTPS id 819ED11EF1B for <~fabrixxm/confy-dev@lists.sr.ht>; Fri, 7 May 2021 14:45:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620398715; bh=SCHdXRQQwiVGM6Vz0uLEzqewPftEhH7UPRnuV+PltGc=; h=X-UI-Sender-Class:Date:From:To:Subject; b=iZnTXRcps/6xCn5LwOOfafhNgjmK909J5ynsCtDyfPYgXZT0v5Ui6u6Es2iNwiID4 b3Yy+klEnRZ3jkSTtNwUo8BLneKfv79tw/b/ll+8ZpYNJIPq05ccNkv6XPhXNuTQiS YKf2puYdh2g/CMcKkju6rkRBALRTPREzmhBff158= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([79.78.207.196]) by mail.gmx.net (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MmDEm-1lEniE3EhM-00iDuL for <~fabrixxm/confy-dev@lists.sr.ht>; Fri, 07 May 2021 16:45:14 +0200 Date: Fri, 7 May 2021 15:45:08 +0100 From: Sebastian Crane To: ~fabrixxm/confy-dev@lists.sr.ht Subject: [PATCH] Modify primary menu to better fit GNOME guidelines Message-ID: <20210507144508.GA3@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Provags-ID: V03:K1:8uIWIbh9QNmtd6MUZHybxh7yz8CvyCuwBtmR5oVeLt43OMvhB99 KOW7r4ZLlk8fHIkYN6QRI4wagxFixTKph4hRynzhwEgHo90xzJlJqbSMw2SfiH3J+Jrs6+b oiPu7qBYIbNDSvWFjy1djYOLEUKkDy/ej64pvwLV2ZVU/Y2VXZ+/fH5F2f7pjLPWsCNzJ+N KfxRXB3f4EqCGCwJuLPWA== X-Spam-Flag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8SlC7zx4PGlYm3lM ZUIOa4GhcJ+bFFk2cmqfetQLrs2Pz4h4b7lw9L+yWC5tnYVidRWIgvy4UuhCs6ueY27V3+fby o6iofHfgxS1ufEg06CWm+JFQR0GaUSsy9z8JRVbpX26tdCRYYzZk/znrN1Ndc/7Nsyl7SUlnA KlqV0gHQYEJm1dVAZAQCW+ixf+Cg9zUF8L5ZDUWCc/NGOCW9P+qD8+Ff38rhtdGheNB6KobJP ZBONYYv9OTShMRf1D Content-Transfer-Encoding: quoted-printable - Remove 'Quit' item - Move 'Keyboard shortcuts' item to below 'Preferences' item Please see https://developer.gnome.org/hig/stable/primary-menus.html for the relevant GNOME design guidelines. =2D-- Dear Fabio, I'm back with another little UX patch for Confy! The first change removes the 'Quit' item from the primary 'hamburger' menu; the reasoning for this is explained in the GNOME Human Interface Guidelines page linked to in the commit message. The second change is to rearrange the menu items. Whilst using GNOME recently, I noticed that all of the applications seemed to have a specific ordering to their menu items. I asked about this on the gnome-design Matrix channel, and there doesn't seem to have been any original decision to use this ordering; apparently it just evolved to be this way over time. That said, I don't see any reason not to keep with GNOME conventions :) I've taken some inspiration from your previous email, and have compiled and tested the patch on my PinePhone - the build system is pretty nifty on PostmarketOS just as it is on Mobian! Plus, this time I updated the changelog ;) As before, I'd love to hear your feedback about this patch! Best wishes, Sebastian CHANGELOG | 1 + src/window.py | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index e7552a5..6c878db 100644 =2D-- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,7 @@ ## [unreleased] ### Changed +- Modify primary menu to better fit GNOME guidelines (seabass) - Move 'star event' button to end of event widget (seabass) ## [0.5.5] - 2020-04-06 diff --git a/src/window.py b/src/window.py index 3424538..a02fc93 100644 =2D-- a/src/window.py +++ b/src/window.py @@ -669,13 +669,10 @@ class ConfyWindow(Gtk.ApplicationWindow): def pop_menu(self, menu): s =3D Gio.Menu() - s.append(_("Keyboard shortcuts"), "app.shortcuts") s.append(_("Preferences"), "win.show-preferences") + s.append(_("Keyboard shortcuts"), "app.shortcuts") s.append(_("About {}").format(APP_NAME), "win.about") menu.append_section(None, s) - s =3D Gio.Menu() - s.append(_("Quit").format(APP_NAME), "app.quit") - menu.append_section(None, s) def show_about(self, *args): Gtk.AboutDialog( =2D- 2.25.4