Re: Decoration of TextView?



Lars Clausen wrote:
> I'm switching an old GtkText widget to GtkTextView, but notice that the
> GtkTextView has no pretty bevelled border around it.  I fail to see a
> decoration widget that adds this, and gtk_text_view_set_window_size() only
> creates the gray flat border.  Did I miss something?  How do I give it a
> nice border like e.g. GtkEntry?
Since you're probably placing it inside a scrolled window, then :
gtk_scrolled_window_set_shadow_type(sw, GTK_SHADOW_ETCHED_IN);

In glade you'll find a new item in the first tab.

BYtE,
 Diego.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]