diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-28 11:26:37 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-28 11:26:37 +0200 |
commit | b6d0231a53abe3be35f71aa73ddda8654835833f (patch) | |
tree | b4ad5c21ec9f8451dfefc053cf3e8e255d875ecb /src/app.c | |
parent | ff2deccfdf4aba25f04eed2bba442d28e6dba2df (diff) |
Cleanup: Removed (hidden) preformatted wrap option
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 25 |
1 files changed, 1 insertions, 24 deletions
@@ -105,21 +105,10 @@ struct Impl_App { | |||
105 | iBool isFinishedLaunching; | 105 | iBool isFinishedLaunching; |
106 | iTime lastDropTime; /* for detecting drops of multiple items */ | 106 | iTime lastDropTime; /* for detecting drops of multiple items */ |
107 | /* Preferences: */ | 107 | /* Preferences: */ |
108 | iBool commandEcho; /* --echo */ | 108 | iBool commandEcho; /* --echo */ |
109 | iBool forceSoftwareRender; /* --sw */ | 109 | iBool forceSoftwareRender; /* --sw */ |
110 | iRect initialWindowRect; | 110 | iRect initialWindowRect; |
111 | iPrefs prefs; | 111 | iPrefs prefs; |
112 | #if 0 | ||
113 | iBool retainWindowSize; | ||
114 | float uiScale; | ||
115 | int zoomPercent; | ||
116 | iBool forceWrap; | ||
117 | enum iColorTheme theme; | ||
118 | iBool useSystemTheme; | ||
119 | iString gopherProxy; | ||
120 | iString httpProxy; | ||
121 | iString downloadDir; | ||
122 | #endif | ||
123 | }; | 112 | }; |
124 | 113 | ||
125 | static iApp app_; | 114 | static iApp app_; |
@@ -172,9 +161,6 @@ static iString *serializePrefs_App_(const iApp *d) { | |||
172 | if (isVisible_Widget(sidebar)) { | 161 | if (isVisible_Widget(sidebar)) { |
173 | appendCStr_String(str, "sidebar.toggle\n"); | 162 | appendCStr_String(str, "sidebar.toggle\n"); |
174 | } | 163 | } |
175 | if (d->prefs.forceLineWrap) { | ||
176 | appendFormat_String(str, "forcewrap.toggle\n"); | ||
177 | } | ||
178 | appendFormat_String(str, "sidebar.mode arg:%d\n", mode_SidebarWidget(sidebar)); | 164 | appendFormat_String(str, "sidebar.mode arg:%d\n", mode_SidebarWidget(sidebar)); |
179 | appendFormat_String(str, "uiscale arg:%f\n", uiScale_Window(d->window)); | 165 | appendFormat_String(str, "uiscale arg:%f\n", uiScale_Window(d->window)); |
180 | appendFormat_String(str, "prefs.dialogtab arg:%d\n", d->prefs.dialogTab); | 166 | appendFormat_String(str, "prefs.dialogtab arg:%d\n", d->prefs.dialogTab); |
@@ -617,10 +603,6 @@ const iPrefs *prefs_App(void) { | |||
617 | return &app_.prefs; | 603 | return &app_.prefs; |
618 | } | 604 | } |
619 | 605 | ||
620 | iBool forceLineWrap_App(void) { | ||
621 | return app_.prefs.forceLineWrap; | ||
622 | } | ||
623 | |||
624 | iBool forceSoftwareRender_App(void) { | 606 | iBool forceSoftwareRender_App(void) { |
625 | if (app_.forceSoftwareRender) { | 607 | if (app_.forceSoftwareRender) { |
626 | return iTrue; | 608 | return iTrue; |
@@ -985,11 +967,6 @@ iBool handleCommand_App(const char *cmd) { | |||
985 | d->prefs.loadImageInsteadOfScrolling = arg_Command(cmd); | 967 | d->prefs.loadImageInsteadOfScrolling = arg_Command(cmd); |
986 | return iTrue; | 968 | return iTrue; |
987 | } | 969 | } |
988 | else if (equal_Command(cmd, "forcewrap.toggle")) { | ||
989 | d->prefs.forceLineWrap = !d->prefs.forceLineWrap; | ||
990 | updateSize_DocumentWidget(document_App()); | ||
991 | return iTrue; | ||
992 | } | ||
993 | else if (equal_Command(cmd, "theme.set")) { | 970 | else if (equal_Command(cmd, "theme.set")) { |
994 | const int isAuto = argLabel_Command(cmd, "auto"); | 971 | const int isAuto = argLabel_Command(cmd, "auto"); |
995 | d->prefs.theme = arg_Command(cmd); | 972 | d->prefs.theme = arg_Command(cmd); |