packagekit/contrib/gtk-module
Matthias Clasen afca1e8e96 Port GTK+ module to org.freedesktop.PackageKit.Modify2
This gets rid of an X dependency (which gets injected into
apps via a module, ugly ugly).

https://bugzilla.gnome.org/show_bug.cgi?id=746059

Signed-off-by: Richard Hughes <richard@hughsie.com>
2015-04-13 11:44:07 +01:00
..
gtk2 trivial: don't link GTK3 in the GTK2 module, bad things happen 2012-06-12 15:51:49 +01:00
GLASS.txt trivial: rename pango-module to gtk-module on request of behdad 2008-11-27 08:06:42 +00:00
Makefile.am Use _cleanup_free in contrib/* 2014-09-03 09:36:40 +01:00
pk-gtk-module.c Port GTK+ module to org.freedesktop.PackageKit.Modify2 2015-04-13 11:44:07 +01:00
pk-gtk-module.desktop Move the gtk-module extra files to the PK tarball 2011-10-19 10:14:55 +01:00
README trivial: Fixup the gtk-module example 2013-04-11 12:54:14 +01:00

The GTK+ module is designed to be loaded using gnome-settings-daemon by the
gnome-packagekit package.

It can however be launched for testing using:

GTK_MODULES="$GTK_MODULES:/usr/lib64/gtk-3.0/modules/libpk-gtk-module.so" application

The module installs a custom default pangocairo font map during gtk_init().
Pango will then call back with any languages which need installing, and these
are queued up. In an idle callback these are emitted as an asyncronous D-BUS
method to the session PackageKit InstallFontconfigResources() method.

If configured to do so, this will prompt the user to install new fonts.

Notes:

 * At the moment the window XID is not detected correctly, which means focus
   stealing prevention may not work properly.  We're working on this.
 * gnome-packagekit 2.17.2 is needed for the InstallFontconfigResources method.