diff options
Diffstat (limited to 'src/ui/util.c')
-rw-r--r-- | src/ui/util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index 4d5ed916..d64a93b6 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -1023,6 +1023,7 @@ static void makeTwoColumnHeading_(const char *title, iWidget *headings, iWidget | |||
1023 | } | 1023 | } |
1024 | 1024 | ||
1025 | static void expandInputFieldWidth_(iInputWidget *input) { | 1025 | static void expandInputFieldWidth_(iInputWidget *input) { |
1026 | if (!input) return; | ||
1026 | iWidget *page = as_Widget(input)->parent->parent->parent->parent; /* tabs > page > values > input */ | 1027 | iWidget *page = as_Widget(input)->parent->parent->parent->parent; /* tabs > page > values > input */ |
1027 | as_Widget(input)->rect.size.x = | 1028 | as_Widget(input)->rect.size.x = |
1028 | right_Rect(bounds_Widget(page)) - left_Rect(bounds_Widget(constAs_Widget(input))); | 1029 | right_Rect(bounds_Widget(page)) - left_Rect(bounds_Widget(constAs_Widget(input))); |
@@ -1056,8 +1057,10 @@ iWidget *makePreferences_Widget(void) { | |||
1056 | iWidget *headings, *values; | 1057 | iWidget *headings, *values; |
1057 | /* General preferences. */ { | 1058 | /* General preferences. */ { |
1058 | appendTwoColumnPage_(tabs, "General", '1', &headings, &values); | 1059 | appendTwoColumnPage_(tabs, "General", '1', &headings, &values); |
1060 | #if defined (LAGRANGE_DOWNLOAD_EDIT) | ||
1059 | addChild_Widget(headings, iClob(makeHeading_Widget("Downloads folder:"))); | 1061 | addChild_Widget(headings, iClob(makeHeading_Widget("Downloads folder:"))); |
1060 | setId_Widget(addChild_Widget(values, iClob(new_InputWidget(0))), "prefs.downloads"); | 1062 | setId_Widget(addChild_Widget(values, iClob(new_InputWidget(0))), "prefs.downloads"); |
1063 | #endif | ||
1061 | addChild_Widget(headings, iClob(makeHeading_Widget("Show URL on hover:"))); | 1064 | addChild_Widget(headings, iClob(makeHeading_Widget("Show URL on hover:"))); |
1062 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.hoverlink"))); | 1065 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.hoverlink"))); |
1063 | addChild_Widget(headings, iClob(makeHeading_Widget("Smooth scrolling:"))); | 1066 | addChild_Widget(headings, iClob(makeHeading_Widget("Smooth scrolling:"))); |