Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an example of a multiline text field in GTK+3 written in c++ without using css?

I'm having trouble figuring out the basic multi-line text field stuff in GTK+3. I was hoping someone could help me out with a simple example with no css formatting. I've done some googling and haven't found anything which I wouldn't have to deconstruct to get at the answer. Thanks.

like image 486
Daniel Drake Avatar asked Sep 14 '25 02:09

Daniel Drake


1 Answers

Alright, I figured out how to do it.

GtkTextBuffer *textBufferName = gtk_text_buffer_new(NULL);
GtkWidget *widgetName = gtk_text_view_new_with_buffer(textBufferName);
like image 54
Daniel Drake Avatar answered Sep 16 '25 19:09

Daniel Drake