diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/util.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index 67d34062..c99df1fd 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -904,6 +904,7 @@ iWidget *makePreferences_Widget(void) { | |||
904 | iClob(new_LabelWidget(uiHeading_ColorEscape "PREFERENCES", 0, 0, NULL)), | 904 | iClob(new_LabelWidget(uiHeading_ColorEscape "PREFERENCES", 0, 0, NULL)), |
905 | frameless_WidgetFlag); | 905 | frameless_WidgetFlag); |
906 | iWidget *tabs = makeTabs_Widget(dlg); | 906 | iWidget *tabs = makeTabs_Widget(dlg); |
907 | setId_Widget(tabs, "prefs.tabs"); | ||
907 | iWidget *headings, *values; | 908 | iWidget *headings, *values; |
908 | /* General preferences. */ { | 909 | /* General preferences. */ { |
909 | appendTwoColumnPage_(tabs, "General", '1', &headings, &values); | 910 | appendTwoColumnPage_(tabs, "General", '1', &headings, &values); |
@@ -933,14 +934,15 @@ iWidget *makePreferences_Widget(void) { | |||
933 | /* Layout. */ { | 934 | /* Layout. */ { |
934 | appendTwoColumnPage_(tabs, "Style", '2', &headings, &values); | 935 | appendTwoColumnPage_(tabs, "Style", '2', &headings, &values); |
935 | /* Fonts. */ { | 936 | /* Fonts. */ { |
936 | addChild_Widget(headings, iClob(makeHeading_Widget("Body font:"))); | 937 | iWidget *fonts; |
937 | iWidget *fonts = new_Widget(); | ||
938 | addFontButtons_(fonts, "font"); | ||
939 | addChildFlags_Widget(values, iClob(fonts), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag); | ||
940 | addChild_Widget(headings, iClob(makeHeading_Widget("Heading font:"))); | 938 | addChild_Widget(headings, iClob(makeHeading_Widget("Heading font:"))); |
941 | fonts = new_Widget(); | 939 | fonts = new_Widget(); |
942 | addFontButtons_(fonts, "headingfont"); | 940 | addFontButtons_(fonts, "headingfont"); |
943 | addChildFlags_Widget(values, iClob(fonts), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag); | 941 | addChildFlags_Widget(values, iClob(fonts), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag); |
942 | addChild_Widget(headings, iClob(makeHeading_Widget("Body font:"))); | ||
943 | fonts = new_Widget(); | ||
944 | addFontButtons_(fonts, "font"); | ||
945 | addChildFlags_Widget(values, iClob(fonts), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag); | ||
944 | } | 946 | } |
945 | addChild_Widget(headings, iClob(makePadding_Widget(2 * gap_UI))); | 947 | addChild_Widget(headings, iClob(makePadding_Widget(2 * gap_UI))); |
946 | addChild_Widget(values, iClob(makePadding_Widget(2 * gap_UI))); | 948 | addChild_Widget(values, iClob(makePadding_Widget(2 * gap_UI))); |
@@ -999,7 +1001,7 @@ iWidget *makePreferences_Widget(void) { | |||
999 | addAction_Widget(dlg, prevTab_KeyShortcut, "tabs.prev"); | 1001 | addAction_Widget(dlg, prevTab_KeyShortcut, "tabs.prev"); |
1000 | addAction_Widget(dlg, nextTab_KeyShortcut, "tabs.next"); | 1002 | addAction_Widget(dlg, nextTab_KeyShortcut, "tabs.next"); |
1001 | addChild_Widget(get_Window()->root, iClob(dlg)); | 1003 | addChild_Widget(get_Window()->root, iClob(dlg)); |
1002 | centerSheet_Widget(dlg); | 1004 | centerSheet_Widget(dlg); |
1003 | return dlg; | 1005 | return dlg; |
1004 | } | 1006 | } |
1005 | 1007 | ||