[Gtk-sharp-list] task list
Jeremy Wells
jeremy@olicomp.com
Sat, 24 Apr 2004 13:45:35 +0100
ok, i found the generator readme and tried to do as it said, i created
an xml file for libwnck:
<gapi-parser-input>
<api filename="api/wnck-api.raw">
<library name="libwnck-1.so.4">
<namespace name="Wnck">
<dir>libwnck-2.4.0.1/libwnck</dir>
</namespace>
</library>
</api>
</gapi-parser-input>
and then ran gapi-parser libwnck.xml and a lot of numbers n stuff
flashes past as it runs, but then it exits with the following error:
at /usr/local/bin/gapi2xml.pl line 852, <STDIN> line 1621.
I/O warning : failed to load external entity "api/wnck-api.raw.pre"
** (process:12377): WARNING **: File api/wnck-api.raw.pre empty or not
well-formed.
it doesn't matter how i change the location of the api filename or
anything, it always comes out with the same error.
am i doing something wrong or am i barking up the wrong tree completely
trying to do it like this?
Jeremy
On Fri, 2004-04-23 at 23:52, Jeremy Wells wrote:
> yea ok so i've got linking to libwnck kinda working, ie i can get back
> the glist of windows (i can count them) but... after looking at the
> libwnck source i notice that the windows are gobjects, and i don't know
> how to expose them into c#. Is there any documentation on this process
> from how it was done with the gtk libraries?
>
> Jeremy
>
> On Fri, 2004-04-23 at 23:00, Dan Winship wrote:
> > On Fri, 2004-04-23 at 22:49 +0100, Jeremy Wells wrote:
> > > is that a gnome specific library or will it work with other
> > > windowmanagers?
> >
> > It will work with any windowmanager that supports the extended wm spec.
> >
> > > is it not possible to send the X server the
> > > _NET_CLIENT_LIST atom and get a response using the gtk-sharp
> > > libraries... i noticed there is an atom class, but I haven't found
> > > anything that'll let me get the window list back.
> >
> > You might be able to do it with Gdk.Property.Get, but the gtk docs warn:
> >
> > The XGetWindowProperty() function that gdk_property_get() uses
> > has a very confusing and complicated set of semantics.
> > Unfortunately, gdk_property_get() makes the situation worse
> > instead of better (the semantics should be considered
> > undefined), and also prints warnings to stderr in cases where it
> > should return a useful error to the program. You are advised to
> > use XGetWindowProperty() directly until a replacement function
> > for gdk_property_get() is provided.
> >
> > -- Dan
> >
> > _______________________________________________
> > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list