kwo pushed a commit to branch master.

http://git.enlightenment.org/e16/e16.git/commit/?id=8f82fe1559f03d7c330f8d7d3c4b47df5fdd4402

commit 8f82fe1559f03d7c330f8d7d3c4b47df5fdd4402
Author: Kim Woelders <k...@woelders.dk>
Date:   Sat Nov 13 18:45:18 2021 +0100

    pagers: Remember zoom setting when changed by pager menu
---
 src/pager.c | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/pager.c b/src/pager.c
index 6c786fba..f2f0da55 100644
--- a/src/pager.c
+++ b/src/pager.c
@@ -1287,6 +1287,16 @@ PagersSetMode(int mode)
    autosave();
 }
 
+static void
+PagersSetZoom(int onoff)
+{
+   if (Conf_pagers.zoom == onoff)
+      return;
+   Conf_pagers.zoom = onoff;
+
+   autosave();
+}
+
 /*
  * Pager event handlers
  */
@@ -2103,9 +2113,9 @@ IPC_Pager(const char *params)
    else if (!strcmp(prm1, "zoom"))
      {
        if (!strcmp(p, "on"))
-          Conf_pagers.zoom = 1;
+          PagersSetZoom(1);
        else if (!strcmp(p, "off"))
-          Conf_pagers.zoom = 0;
+          PagersSetZoom(0);
      }
 }
 

-- 


Reply via email to