Re: Label font and color

David J. Trombley wrote:

I'm wondering if there is an easy way to change the font size/color of a Label. Pango doesn't seem to be supported in Gtk-Perl, and when I try to allocate a color in the parent window and set the foreground color of the gc of the label, it seems all the other text in the parent window shows that color also! How can I change just the color/size of the label text?

I've now changed to using a Gtk::Text object, as I was able to easily set the font, bg, and fg colors for the text this way. However, I'm still struggling with trying to set the background of the Gtk::Text widget. It seems that whenever I set the style's bg color or pixmap, the whole parent window is affected still, in much the same way that the fg color was affecting the rest of the window before. Any ideas? How can I set a bg_pixmap or bg color for /only the Text widget/?

-dj trombley
<dtrom bumba net>

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