diff options
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -180,6 +180,7 @@ static iString *serializePrefs_App_(const iApp *d) { | |||
180 | appendFormat_String(str, "font.set arg:%d\n", d->prefs.font); | 180 | appendFormat_String(str, "font.set arg:%d\n", d->prefs.font); |
181 | appendFormat_String(str, "headingfont.set arg:%d\n", d->prefs.headingFont); | 181 | appendFormat_String(str, "headingfont.set arg:%d\n", d->prefs.headingFont); |
182 | appendFormat_String(str, "zoom.set arg:%d\n", d->prefs.zoomPercent); | 182 | appendFormat_String(str, "zoom.set arg:%d\n", d->prefs.zoomPercent); |
183 | appendFormat_String(str, "smoothscroll arg:%d\n", d->prefs.smoothScrolling); | ||
183 | appendFormat_String(str, "linewidth.set arg:%d\n", d->prefs.lineWidth); | 184 | appendFormat_String(str, "linewidth.set arg:%d\n", d->prefs.lineWidth); |
184 | appendFormat_String(str, "prefs.biglede.changed arg:%d\n", d->prefs.bigFirstParagraph); | 185 | appendFormat_String(str, "prefs.biglede.changed arg:%d\n", d->prefs.bigFirstParagraph); |
185 | appendFormat_String(str, "prefs.sideicon.changed arg:%d\n", d->prefs.sideIcon); | 186 | appendFormat_String(str, "prefs.sideicon.changed arg:%d\n", d->prefs.sideIcon); |
@@ -735,6 +736,8 @@ static iBool handlePrefsCommands_(iWidget *d, const char *cmd) { | |||
735 | cstr_String(text_InputWidget(findChild_Widget(d, "prefs.downloads")))); | 736 | cstr_String(text_InputWidget(findChild_Widget(d, "prefs.downloads")))); |
736 | postCommandf_App("window.retain arg:%d", | 737 | postCommandf_App("window.retain arg:%d", |
737 | isSelected_Widget(findChild_Widget(d, "prefs.retainwindow"))); | 738 | isSelected_Widget(findChild_Widget(d, "prefs.retainwindow"))); |
739 | postCommandf_App("smoothscroll arg:%d", | ||
740 | isSelected_Widget(findChild_Widget(d, "prefs.smoothscroll"))); | ||
738 | postCommandf_App("ostheme arg:%d", | 741 | postCommandf_App("ostheme arg:%d", |
739 | isSelected_Widget(findChild_Widget(d, "prefs.ostheme"))); | 742 | isSelected_Widget(findChild_Widget(d, "prefs.ostheme"))); |
740 | postCommandf_App("proxy.http address:%s", | 743 | postCommandf_App("proxy.http address:%s", |
@@ -942,6 +945,10 @@ iBool handleCommand_App(const char *cmd) { | |||
942 | postCommand_App("window.unfreeze"); | 945 | postCommand_App("window.unfreeze"); |
943 | return iTrue; | 946 | return iTrue; |
944 | } | 947 | } |
948 | else if (equal_Command(cmd, "smoothscroll")) { | ||
949 | d->prefs.smoothScrolling = arg_Command(cmd); | ||
950 | return iTrue; | ||
951 | } | ||
945 | else if (equal_Command(cmd, "forcewrap.toggle")) { | 952 | else if (equal_Command(cmd, "forcewrap.toggle")) { |
946 | d->prefs.forceLineWrap = !d->prefs.forceLineWrap; | 953 | d->prefs.forceLineWrap = !d->prefs.forceLineWrap; |
947 | updateSize_DocumentWidget(document_App()); | 954 | updateSize_DocumentWidget(document_App()); |
@@ -1119,6 +1126,7 @@ iBool handleCommand_App(const char *cmd) { | |||
1119 | updatePrefsThemeButtons_(dlg); | 1126 | updatePrefsThemeButtons_(dlg); |
1120 | setText_InputWidget(findChild_Widget(dlg, "prefs.downloads"), &d->prefs.downloadDir); | 1127 | setText_InputWidget(findChild_Widget(dlg, "prefs.downloads"), &d->prefs.downloadDir); |
1121 | setToggle_Widget(findChild_Widget(dlg, "prefs.hoveroutline"), d->prefs.hoverOutline); | 1128 | setToggle_Widget(findChild_Widget(dlg, "prefs.hoveroutline"), d->prefs.hoverOutline); |
1129 | setToggle_Widget(findChild_Widget(dlg, "prefs.smoothscroll"), d->prefs.smoothScrolling); | ||
1122 | setToggle_Widget(findChild_Widget(dlg, "prefs.ostheme"), d->prefs.useSystemTheme); | 1130 | setToggle_Widget(findChild_Widget(dlg, "prefs.ostheme"), d->prefs.useSystemTheme); |
1123 | setToggle_Widget(findChild_Widget(dlg, "prefs.retainwindow"), d->prefs.retainWindowSize); | 1131 | setToggle_Widget(findChild_Widget(dlg, "prefs.retainwindow"), d->prefs.retainWindowSize); |
1124 | setText_InputWidget(findChild_Widget(dlg, "prefs.uiscale"), | 1132 | setText_InputWidget(findChild_Widget(dlg, "prefs.uiscale"), |