TextBuffer::Tag color



Does anyone has an example showing how to set the foreground property of a Gtk::TextBuffer::Tag from some rgb values. I've been trying with property_foreground_gdk() but no luck, not sure how it should be used either:

Gdk::Color color;
color.set_rgb( 230, 150, 70 );
special->property_foreground_gdk() = color;


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