(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.
(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( ). 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.
gdk_gc_
I will update the patch soon.
Thanks,
Hro