GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sun Apr 20, 2014 8:16 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Automatic linebreak in GtkTextView
PostPosted: Wed Feb 22, 2012 4:11 pm 
Offline
Familiar Face

Joined: Tue Jan 31, 2012 3:08 pm
Posts: 7
How can I create a GtkTextView inside a GtkScrolledWindow with the following properties:

1) No vertical scrollbar
2) No automatic resizing of the GtkTextView
3) Automatic line break

I tried using:
gtk_text_view_set_wrap_mode(textView, GTK_WRAP_WORD_CHAR);

gtk_text_buffer_create_tag(buffer, "wrap", "wrap-mode", GTK_WRAP_WORD, NULL);

But both seems to make no impact. The textview is still resized.

Thanks a lot for your help!

Best regards,
Sabine


Top
 Profile  
 
 Post subject: Re: Automatic linebreak in GtkTextView
PostPosted: Sun Sep 16, 2012 2:56 pm 
Offline

Joined: Sun Sep 16, 2012 2:42 pm
Posts: 1
I also have a similar problem, where I want the lines inside a gtktextview getting auto wrapped when the outer frame gets resized. (compressing or expanding) But what restricting it is the other widgets placed in the outer frame.

If any one has also faced this or knows any possible fix can reply here.

Thanks..


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group