<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
W dniu 13.01.2011 14:41, Matthias Klumpp pisze:<br>
<blockquote
cite="mid:d8dc0c413f2bfd0174b4a97401b9218f@mb8-2.1blu.de"
type="cite">
<pre wrap="">Hi!
I developed the Listaller Project, a cross-distro Linux software manager,
which uses techniques like D-BUS and PolicyKit and had very similar
problems. You can run Qt4 applications which use GLib (but only GLib!), but
you need to call g_type_init() in the Qt application somewhere to make
GObject work. (But only _once_, otherwise you get very strange behavior)
This makes the application depend on GLib, but not on GTK+. I won't need my
Listaller D-BUS daemon anymore next time, cause the required parts will get
merged with the PackageKit project. (D-BUS in Pascal is a PAIN! I wrote a
small set of simplifications, but it's far away from a state like C/GLib,
where DBus is very easy to use) Projects like PackageKit, PolicyKit or
Canberra are the reason why KDE has GLib installed in most times, so
depending on GLib and Qt is not really a problem considering the
dependencies.
Cheers
Matthias Klumpp
</pre>
</blockquote>
Thanks for this info Matthias. Simple question:<br>
If I use g_main_context_set_poll_func, does it matter what I return
in TGPollFunc? Can this be just 0? Documentation say:<br>
"<span class="term"><span class="emphasis"><em>Returns</em></span> :</span>
the number of <a
href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GPollFD"
class="link" title="GPollFD"><span class="type">GPollFD</span></a>
elements which have events or errors reported, or -1 if an error
occurred"<br>
... and I don't understand this :P<br>
<br>
Regards<br>
</body>
</html>