Re: colors in text box





A Dark Elf <drow@DarkElf.net> writes:

> Any way to change the color of 1 line in a text box? gtk_text_insert
> doesn't seem to like anything but style->black

I'm not quite sure what you are trying. But for instance, from
testgtk.c:

  gtk_text_insert (GTK_TEXT (text), NULL, 
	           &text->style->bg[GTK_STATE_NORMAL], NULL, 
		   "colored", -1);

Or look at the code to one or two of the IRC clients...

                                        Owen



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