Attilio Fiandrotti wrote:
> Grep'ing the directfb dir and looking at the directfb TODO file, i see
> that gdk_keyval_convert_case() has not been implemented yet: since Mike
> Emmel should be commiting a round of patches i sent him recently, could
> you try to write a patch that provides the missing gdk function without
> relying on XConvertCase (do we have somthing similar in DFB ?).
I am not sure about the DirectFB equivalent.
> For the short term a simple empty stub may do.
In my copy I've added the stub back:
Index: gdk/directfb/gdkkeys-directfb.c
===================================================================
--- gdk/directfb/gdkkeys-directfb.c (revision 17133)
+++ gdk/directfb/gdkkeys-directfb.c (working copy)
@@ -2008,6 +2008,14 @@
return 0;
}
+void
+gdk_keyval_convert_case (guint symbol,
+ guint *lower,
+ guint *upper)
+{
+
+ g_warning("Unimplemented: gdk_keyval_convert_case\n");
+}
#define __GDK_KEYS_DIRECTFB_C__
#include "gdkaliasdef.c"
Index: gdk/gdk.symbols
===================================================================
--- gdk/gdk.symbols (revision 17133)
+++ gdk/gdk.symbols (working copy)
@@ -828,6 +828,7 @@
gdk_keymap_get_for_display
gdk_keymap_lookup_key
gdk_keymap_translate_keyboard_state
+gdk_keyval_convert_case
gdk_keyval_from_name
gdk_keyval_name G_GNUC_CONST
#endif
But doing this conflicts with the gdk_keyval_convert_case() in
gdk/gdkkeys.c. This isn't an issue with the one in the x11 support
because one is wrapped in #ifndef HAVE_XCONVERTCASE and the other in
#ifdef HAVE_XCONVERTCASE. That must be defined on my system, I have
some x libs and headers installed (but am NOT building the x11 backend).
As a quick hack I simply removed the function in gdkkeyc.c.
>
> About the crash you are experiencing with python gtk bindings, could it
> be that's because those bindings are bound to gtk/x11 and not gtk/dfb ?
> pherhaps you need rebuilding against gtk/dfb? just a hypotesis..
No, I've built them fresh against gtk/dfb.
-Rob
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev