[Haskell-cafe] Gtk2Hs and GCs
newsham at lava.net
Wed Jun 18 23:23:11 EDT 2008
I don't see a way to fetch an existing standard GC from a widget.
In other Gtk bindings I usually do this by fetching the widget's
style and then grabbing one of the gc's (such as fg_gc[STATE_NORMAL]).
In Gtk2Hs docs:
it looks like you can only get Colors, not the whole GC.
I can't seem to find any other way short of making a whole new GC
(as is done in Gtk2Hs/demos/graphic/Drawing.hs). Am I missing
something? Is there a reason the GC's arent retrievable?
More information about the Haskell-Cafe