diff options
Diffstat (limited to 'src/action.c')
-rw-r--r-- | src/action.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/src/action.c b/src/action.c index 431db8c3..25fe2f26 100644 --- a/src/action.c +++ b/src/action.c @@ -1069,13 +1069,30 @@ static void create_io_dialog(Children *children) scrolledwin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolledwin), - GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); + GTK_POLICY_AUTOMATIC, + GTK_POLICY_AUTOMATIC); + gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolledwin), + GTK_SHADOW_IN); gtk_box_pack_start(GTK_BOX(vbox), scrolledwin, TRUE, TRUE, 0); - gtk_widget_set_size_request(scrolledwin, 480, 200); + gtk_widget_set_size_request(scrolledwin, 560, 200); gtk_widget_hide(scrolledwin); text = gtk_text_view_new(); + + if (prefs_common.textfont) { + PangoFontDescription *font_desc; + font_desc = pango_font_description_from_string + (prefs_common.textfont); + if (font_desc) { + gtk_widget_modify_font(text, font_desc); + pango_font_description_free(font_desc); + } + } + gtk_text_view_set_editable(GTK_TEXT_VIEW(text), FALSE); + gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(text), GTK_WRAP_WORD); + gtk_text_view_set_left_margin(GTK_TEXT_VIEW(text), 6); + gtk_text_view_set_right_margin(GTK_TEXT_VIEW(text), 6); gtk_container_add(GTK_CONTAINER(scrolledwin), text); gtk_widget_show(text); |