summaryrefslogtreecommitdiff
path: root/src/ui/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/util.c')
-rw-r--r--src/ui/util.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ui/util.c b/src/ui/util.c
index 9a98d07b..553d9078 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -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"));