Thanks for your answers Alex :)

... and sorry for the delay, I was caught in some confusions in
my project about various C2HS stuff (such as how to handle
newtype (foreign) variables across multiple modules).

But please be patient with me since I still have one question !

First to resume briefly the previous thread:

> >My real problems are:
> >- I cannot simply map (GHashTable k v) to a (Data.Map.Map k v)
> >
> 
> I don't know what you mean with "map". If you want to bind
> GHashTable then you providing an interface to a set of C functions
> that you can use in the IO monad to use the GHashTable. Maybe that's
> not that useful since Haskell provides it's own hashtables. Usually
> I would only bind what you need from GLib and expose the really
> useful functions of the library that builds on glib.

By "map", I was hoping to get an easy solution as with GList
where you can import to / export from haskell the entire set of
values without bothering you constantly keeping a pointer to
GList*.

Anyway, forget about this, I have kept things simple and only
coded a minimal subset of GHashTable, re-reading xfconf
documentation, it appears we only get (gchar*) keys and (gvalue*)
values.


Then, concerning the question.  I would like to cast
XfconfChannel to a GObject, play with its attribute and connect
to it some signals.  If I've correctly understood the recent
cabalization of gtk2hs and its addons, and based on gconf-0.11, I
should hook Setup.hs to Gtk2HsSetup.hs, create two files,
"marshal.list" and "hierarchy.list" and modify the .cabal
configuration accordingly, am I right ?

What if my reference to the XfconfChannel gobject is a "weak"
reference ? Is there some special things to do, since I do not
require a g_object_unref finalizer.

regards,
John

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to