Re: Bug#381979: keymap not changed in g-i after selection in kbd-chooser
On Thu, Sep 21, 2006, Attilio Fiandrotti wrote:
> >GDK_WINDOWING_DIRECTFB is apparently not defined inside gtk.c
> >the following patch works for me
> GDK_WINDOWING_[X11|DIRECTFB|...] is a macro defined at GTK configure
> time and in GTK 2.10.4 i can find it defined in gdk/gdkconfig.h, while
> sourcecode for package libgtk-directfb-2.0-0 doesn not contain it.
> The problem seems so bounded to GTK 2.8.x with backported DFB backend we
> currently use, and should be fixed when we switch to GTK 2.10.x.
> Removing the GDK backend check is harmless unless someone wants to build
> the GTK frontend against GTKX too, so i guess as a temporary solution it
> can do.
> I never noticed this missing define because i usually perform all my
> test using latest GTK from CVS, thanks to Davide who spotted this :)
I've noticed this problem when I compared a full DFB build with a
standard X11 build, this is why I've started shipping the gdkconfig.h
of the directfb build in /usr/lib/gtk-2.0/include/directfb/gdkconfig.h
starting with 2.10.1-1.
To use it, you should prepend -I/usr/lib/gtk-2.0/include/directfb to
your build flags.
I have in my TODO to patch the DirectFB pkg-config files to achieve
this, but I didn't have the time to do that yet.
Loïc Minier <firstname.lastname@example.org>