Re: Question about CellRendererText foreground font color change...



By the way, I found the bug listing for this particular bug:

https://bugs.freedesktop.org/show_bug.cgi?id=2572
(you have to be logged in, though)

Someone posted an excellent patch to the gtk-qt theme:
https://bugs.freedesktop.org/attachment.cgi?id=3513

Anyway, the above patch fixes the qt rendering engine and colors show
up correctly. :-) Just FYI.

On 11/10/05, R. Douglas Barbieri <dooglio gmail com> wrote:
> Ah ha! I figured out what the problem is. I am running *k*ubuntu using
> the KDE desktop + gtk2-engines-gtk-qt. When you have it set to use the
> "QT" style, the font color change does not work. This is a bug in that
> specific rendering engine, not gtkmm itself. And I would guess
> correctly that this is not the list for that kind of bug, yes? :-)
>
> Anyway, thanks for checking that one out!
>
> -Doug
> ...who will use a different theme besides the "QT" theme from now on... :-)
>
> On 11/10/05, Jonathon Jongsma <jonathon jongsma gmail com> wrote:
> > > In order to demonstrate, I've put together a program (actually, I
> > > stole the example code from the treeview/list project and modified it
> > > to attempt to set the foreground color. I mean, they say mediocrity
> > > merely borrows but genius *steals* :-) ).
> > >
> > > Download it here: http://www.dooglio.net/list.tar.gz
> > > [I even included a makefile for easy compiling--you need pkg-config
> > > for it to work].
> > >
> > > In the example, there are two extra hidden columns: m_col_fontcolor
> > > and m_col_backgroundcolor. They are both of type "Glib::ustring". I
> > > added a background color to show that property working correctly.
> > >
> > > For all three of the rows, I attempt to change the font color and
> > > background color for each entry. The background color change takes on
> > > each row, but the font color stays black (even when the background
> > > color is black, for example--yikes!).
> >
> > Doug,
> > I just downloaded and built your example program and the font colors
> > are red, yellow/orange, and green respectively, so it seems to work
> > for me.  Did you update the program since putting it online?  Or does
> > it still not work for you?  I'm also using gtkmm version
> > 2.8.0-0ubuntu1.
> >
> > Jonathon
> >
> > _______________________________________________
> > gtkmm-list mailing list
> > gtkmm-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gtkmm-list
> >
> >
> >
>
>
> --
> R. Douglas Barbieri
> doug dooglio net
>


--
R. Douglas Barbieri
doug dooglio net



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