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




commit e40847510ae87356264451cd417ec1f460fe075b
Author: Marcus Lundblad <ml dfupdate se>
Date:   Thu Apr 28 22:21:17 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 | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 1811de04..f8ec91eb 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -231,6 +231,10 @@ var MainWindow = GObject.registerClass({
                 accels: ['<Primary>S'],
                 onActivate:  () => this._mapView.toggleScale()
             },
+            'show-scale': {
+                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]