Comment 79 for bug 540332

Revision history for this message
In , Hokamoto (hokamoto) wrote :

(In reply to comment #11)
> But I don't think gtk_expose_event is the right place, the foreground should be
> set in setText() and setMessage() where the layout was created and initialized.

I tried calling gtk_widget_modify_fg() with the text/message color in setText() and setMessage(), but it rendered black text/message, so did not work.

So, that's why Im usng gdk_gc_setforeground().
gdk_gc_set_foreground() needs a GdkGC. So I don't think we can call it in setText() and in setMessage(). But I think we can call display.getSystemColor() in setText() and in setMessage() at least.
I will update the patch soon.

Thanks,
Hro