I would like to know the correct and common way to add top and bottom fields in a GtkTextView
, which is inside a GtkScrolledWindow
. There are functions for setting the left and right fields that I use:
gtk_text_view_set_left_margin(GTK_TEXT_VIEW(editor_text_view), 2); gtk_text_view_set_right_margin(GTK_TEXT_VIEW(editor_text_view), 2);
But I can not find the documentation above and below. I tried changing the width of the border of the GtkTextView
using gtk_container_set_border_width
, but the border is not painted with the background color of the GtkTextView
.
In principle - what I have on the left, and what I want is on the right.
Sean bright
source share