Re: gtk_widget_modify_bg on a GtkTextView



Awesome. That works, thanks. There should probably be a note in the API
docs for modify_bg so as not to confuse people :)

On Sun, Sep 21, 2003 at 11:54:33PM -0500, James Curbo wrote:
Try $view->modify_base('normal', $color); here instead. modify_bg is for
widgets like buttons etc, but for text things you want to use
modify_base. From the API docs:

--
Sets the base color for a widget in a particular state. All other style
values are left untouched. The base color is the background color used
along with the text color (see gtk_widget_modify_text()) for widgets
such as GtkEntry and GtkTextView. See also gtk_widget_modify_style().



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