diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-17 17:01:01 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-17 17:01:01 +0200 |
commit | cdb955bfe2be425ed483273d4341f8fd6c8165ca (patch) | |
tree | 019ba02b640f59f68cb6413bcfb3667351ddd203 /src/ui/util.c | |
parent | c6a3afccfc5ef679a82275c5f045336c2d48f643 (diff) | |
parent | dd90cda682180f6472aa030d01317f70cc3d7282 (diff) |
Merge branch 'dev' of skyjake.fi:skyjake/lagrange into dev
Diffstat (limited to 'src/ui/util.c')
-rw-r--r-- | src/ui/util.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index b52dea2d..553d9078 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -1123,10 +1123,10 @@ iWidget *makePreferences_Widget(void) { | |||
1123 | addChild_Widget(headings, iClob(makeHeading_Widget("Saturation:"))); | 1123 | addChild_Widget(headings, iClob(makeHeading_Widget("Saturation:"))); |
1124 | iWidget *sats = new_Widget(); | 1124 | iWidget *sats = new_Widget(); |
1125 | /* Saturation levels. */ { | 1125 | /* Saturation levels. */ { |
1126 | addRadioButton_(sats, "prefs.saturation.3", "Full", "saturation.set arg:100"); | 1126 | addRadioButton_(sats, "prefs.saturation.3", "100 %%", "saturation.set arg:100"); |
1127 | addRadioButton_(sats, "prefs.saturation.2", "Reduced", "saturation.set arg:66"); | 1127 | addRadioButton_(sats, "prefs.saturation.2", "66 %%", "saturation.set arg:66"); |
1128 | addRadioButton_(sats, "prefs.saturation.1", "Minimal", "saturation.set arg:33"); | 1128 | addRadioButton_(sats, "prefs.saturation.1", "33 %%", "saturation.set arg:33"); |
1129 | addRadioButton_(sats, "prefs.saturation.0", "Monochrome", "saturation.set arg:0"); | 1129 | addRadioButton_(sats, "prefs.saturation.0", "0 %%", "saturation.set arg:0"); |
1130 | } | 1130 | } |
1131 | addChildFlags_Widget(values, iClob(sats), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag); | 1131 | addChildFlags_Widget(values, iClob(sats), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag); |
1132 | } | 1132 | } |
@@ -1175,6 +1175,10 @@ iWidget *makePreferences_Widget(void) { | |||
1175 | } | 1175 | } |
1176 | /* Network. */ { | 1176 | /* Network. */ { |
1177 | appendTwoColumnPage_(tabs, "Network", '5', &headings, &values); | 1177 | appendTwoColumnPage_(tabs, "Network", '5', &headings, &values); |
1178 | addChild_Widget(headings, iClob(makeHeading_Widget("Search URL:"))); | ||
1179 | setId_Widget(addChild_Widget(values, iClob(new_InputWidget(0))), "prefs.searchurl"); | ||
1180 | addChild_Widget(headings, iClob(makeHeading_Widget("Decode URLs:"))); | ||
1181 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.decodeurls"))); | ||
1178 | addChild_Widget(headings, iClob(makeHeading_Widget("Cache size:"))); | 1182 | addChild_Widget(headings, iClob(makeHeading_Widget("Cache size:"))); |
1179 | iWidget *cacheGroup = new_Widget(); { | 1183 | iWidget *cacheGroup = new_Widget(); { |
1180 | iInputWidget *cache = new_InputWidget(4); | 1184 | iInputWidget *cache = new_InputWidget(4); |
@@ -1183,8 +1187,6 @@ iWidget *makePreferences_Widget(void) { | |||
1183 | addChildFlags_Widget(cacheGroup, iClob(new_LabelWidget("MB", NULL)), frameless_WidgetFlag); | 1187 | addChildFlags_Widget(cacheGroup, iClob(new_LabelWidget("MB", NULL)), frameless_WidgetFlag); |
1184 | } | 1188 | } |
1185 | addChildFlags_Widget(values, iClob(cacheGroup), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag); | 1189 | addChildFlags_Widget(values, iClob(cacheGroup), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag); |
1186 | addChild_Widget(headings, iClob(makeHeading_Widget("Decode URLs:"))); | ||
1187 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.decodeurls"))); | ||
1188 | makeTwoColumnHeading_("PROXIES", headings, values); | 1190 | makeTwoColumnHeading_("PROXIES", headings, values); |
1189 | addChild_Widget(headings, iClob(makeHeading_Widget("Gemini proxy:"))); | 1191 | addChild_Widget(headings, iClob(makeHeading_Widget("Gemini proxy:"))); |
1190 | setId_Widget(addChild_Widget(values, iClob(new_InputWidget(0))), "prefs.proxy.gemini"); | 1192 | setId_Widget(addChild_Widget(values, iClob(new_InputWidget(0))), "prefs.proxy.gemini"); |
@@ -1201,6 +1203,7 @@ iWidget *makePreferences_Widget(void) { | |||
1201 | resizeToLargestPage_Widget(tabs); | 1203 | resizeToLargestPage_Widget(tabs); |
1202 | arrange_Widget(dlg); | 1204 | arrange_Widget(dlg); |
1203 | /* Set input field sizes. */ { | 1205 | /* Set input field sizes. */ { |
1206 | expandInputFieldWidth_(findChild_Widget(tabs, "prefs.searchurl")); | ||
1204 | expandInputFieldWidth_(findChild_Widget(tabs, "prefs.downloads")); | 1207 | expandInputFieldWidth_(findChild_Widget(tabs, "prefs.downloads")); |
1205 | expandInputFieldWidth_(findChild_Widget(tabs, "prefs.proxy.gemini")); | 1208 | expandInputFieldWidth_(findChild_Widget(tabs, "prefs.proxy.gemini")); |
1206 | expandInputFieldWidth_(findChild_Widget(tabs, "prefs.proxy.gopher")); | 1209 | expandInputFieldWidth_(findChild_Widget(tabs, "prefs.proxy.gopher")); |