[gnome-maps/wip/mlundblad/toggle-scale-button: 1/2] mainWindow: Add action for state of showing scale




commit 9eb0efb88bf1f7ecd29d426743f5e09fa8057e87
Author: Marcus Lundblad <ml dfupdate se>
Date:   Thu Apr 28 21:56:19 2022 +0200

    mainWindow: Add action for state of showing scale
    
    Adds an action with a boolean value for showing/hiding
    the scale.

 src/mainWindow.js | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 1811de04..3381b4b0 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -231,6 +231,11 @@ var MainWindow = GObject.registerClass({
                 accels: ['<Primary>S'],
                 onActivate:  () => this._mapView.toggleScale()
             },
+            'show-scaƶe': {
+                paramType:     'b',
+                setting:       'show-scale'
+            },
+
             'find': {
                 accels: ['<Primary>F'],
                 onActivate: () => this._placeEntry.grab_focus()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]