I dont have a patch but i can tell you in which file i made changes. I use
GTK+ 2.12.2 .

In file /gdk/directfb/gdkdisplay-directfb.c in function gdk_display_open i
commented the lines

 ret=directfb->GetInputDevice (directfb, DIDID_KEYBOARD, &keyboard);
  if (ret != DFB_OK){
      DirectFBError ("gdk_display_open: GetDisplayLayer", ret);
        return NULL;
  }
_gdk_display->keyboard=keyboard;
 _gdk_directfb_keyboard_init ();

try this. It worked for me. Use this only if you plan not to have keyboard.
You can revert the changes back to original if you need to add keyboard
support.

Also see this post
http://mail.directfb.org/pipermail/directfb-users/2008-January/000296.html .

Regards,
Harinandan
On Fri, Apr 11, 2008 at 8:39 AM, Peter Ma <[EMAIL PROTECTED]> wrote:

>  I have no keyboard, as it is a hand-held system.  I will have to look
> into how to get get gpio-keys to emulate a keyboard handler...
>
>
>
> Would you mind providing a patch, or even point me to the file where I can
> stub-out the keyboard check code?
>
>
>
> Thanks,
>
> Pete
>
>
>
>
>  ------------------------------
>
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] *On Behalf Of *Harinandan S
> *Sent:* Thursday, April 10, 2008 7:09 PM
> *To:* [EMAIL PROTECTED]
> *Cc:* directfb-users@directfb.org
> *Subject:* Re: [directfb-users] GTK-DFB on AVR32
>
>
>
> Do you have keyboard in your system? I faced similar error and it was due
> GTK trying to access keyboard which was not in my system. It was resolved
> after i commented keyboard check code in GTK source since i was not aware of
> any better method to overcome it.
>
> Regards,
> Harinandan S
>
> P>On Fri, Apr 11, 2008 at 5:49 AM, Peter Ma <[EMAIL PROTECTED]>
> wrote:
>
> P>Using the latest buildroot (from SVN), I have built gtk with DirectFB
> (no X
> P>server support).  Lots of stop-and-go and manually editting of ..la
> files,
> P>but it compiled eventually...
>
> P>This is what I get when running gtk-demo on my target (Atmel NGW100,
> with
> P>LCD display, UCB1400 touchscreen, a couple of pushbuttons using
> gpio-keys):
>
>
> [EMAIL PROTECTED] /]# gtk-demo
>
>     =======================|  DirectFB 1.0.1  |=======================
>          (c) 2001-2007  The DirectFB Organization (directfb.org)
>          (c) 2000-2004  Convergence (integrated media) GmbH
>        ------------------------------------------------------------
>
> (*) DirectFB/Core: Single Application Core. (2008-03-23 06:06)
> (*) Direct/Thread: Running 'Linux Input' (INPUT, 292)...
> (*) DirectFB/Input: gpio-keys (1) 0.1 (directfb.org)
> (*) Direct/Thread: Running 'Linux Input' (INPUT, 294)...
> (*) DirectFB/Input: UCB1400 touchscreen interface (2) 0.1 (directfb.org)
> (!) Direct/Modules: Could not open module directory
> `/lib/directfb-1.0/gfxdrivers'!
>    --> No such file or directory
> (*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (directfb.org)
> (*) DirectFB/Core/WM: Default 0.3 (directfb.org)
> (#) DirectFBError [gdk_display_open: GetDisplayLayer]: Requested ID not
> found!
> GLib: Cannot convert message: Conversion from character set 'UTF-8' to
> 'ASCII' is not supported
>
> (gtk-demo:289): Gtk-WARNING **: cannot open display:
>  (!!!)  *** WARNING [Application exited without deinitialization of
> DirectFB!] *** [core.c:813 in dfb_core_deinit_check()]
>  (!!!)  *** WARNING [still objects in 'Layer Region Pool'] ***
> [object.c:231
> in fusion_object_pool_destroy()]
>  (!!!)  *** WARNING [still objects in 'Layer Context Pool'] ***
> [object.c:231 in fusion_object_pool_destroy()]
> [EMAIL PROTECTED] /]#
>
>
>
> P>The various DirectFB demo executables do work as expected.
>
> P>What is "Requested ID not found!" referring to?
>
> P>Thanks in advance,
> P>Pete
>
>
>
>
> _______________________________________________
> directfb-users mailing list
> directfb-users@directfb.org
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
>
>
>
>
> --
>



-- 
Regards,
Harinandan S
_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to