text selection color accessor



Hello,

I have a need to get the current (as per the selected UI theme) text selection color. I will be using this to highlight some other custom drawn elements in the UI of my gtk app.

I understand that I can get this from the style information of a text widget (GtkEntry, etc), but it seems that the widget must be active in the UI before this information is fully filled in (that is, just creating a GtkEntry and accessing its style information does not give the correct results - this is just from my experiments).

Any idea how I can access the text selection color at startup in my gtk app?


thanks,
steve



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