I think you should propose a standard gdk call to reload the key
may.

X11 has this ability I think also.

Look at the X11 calls to see if you can come up with a call that would
work for both.

If you can then propose that and intially we will expose the dfb call directly.

This looks like a generic problem.

Mike

On 8/30/06, Attilio Fiandrotti <[EMAIL PROTECTED]> wrote:
> Some times ago davide and dok were discussing [1] about how to fix a bug
> [2] found in the g-i.
> Now, the attached patch seems to cause correct reloading of keyboard on
> my system (not tested in the g-i yet).
>
> (*) DirectFB/Input: Reloading keymap for 'Keyboard' [0x00]...
> (*) DirectFB/Input: Reloaded keymap for 'Keyboard' [0x00]
>
> I'm wondering if keyboard settings reload is a common need for other
> GTKDFB applications too: in this case would it be worth implementing a
> new function in the gdk-directfb backend? (other dfb-only functions like
> gdk_directfb_window_set_opacity() already exist).
> Or should maybe this functionality be implemented in a more proper way
> that i'm missing ?
>
> Attilio
>
> [1] http://mail.directfb.org/pipermail/directfb-dev/2006-August/002217.html
> [2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=381979
>
> Index: gtk.c
> ===================================================================
> --- gtk.c       (revisione 40194)
> +++ gtk.c       (copia locale)
> @@ -48,6 +48,9 @@
>   #include <syslog.h>
>   #include <debian-installer/slist.h>
>   #include <gdk/gdkkeysyms.h>
> +#ifdef GDK_WINDOWING_DIRECTFB
> +#include <directfb.h>
> +#endif
>
>   #define WINDOW_WIDTH 800
>   #define WINDOW_HEIGHT 600
> @@ -1544,6 +1547,10 @@
>       gdk_threads_enter();
>
>       gtk_rc_reparse_all();
> +
> +    #ifdef GDK_WINDOWING_DIRECTFB
> +    dfb_input_device_reload_keymap( dfb_input_device_at( DIDID_KEYBOARD
> ) );
> +    #endif
>
>       questionbox = gtk_vbox_new(FALSE, 0);
>
>
>

_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to