hi,

attachment is a test sample and make file. it works well for GTK+ for X11,
and got signal 11 in GTK+ for DirectFB.

to run in X11, need to change "pkg-config gtk+-directfb-2.0" to "pkg-config
gtk+-2.0".

for me, it seem in gdk_pixmap_new, when window==_gdk_parent_root and
depth==-1, DirectFB hasn't handle it correctly. correct me here if i'm
wrong.

thanks and best regards,

ln
----- Original Message -----
From: "Sven Neumann" <[EMAIL PROTECTED]>
To: "Liu, Nian(Neo)" <[EMAIL PROTECTED]>
Sent: Tuesday, July 29, 2003 7:49 PM
Subject: Re: [directfb-dev] Re: pixmap with depth equals -1


> "Liu, Nian\(Neo\)" <[EMAIL PROTECTED]> writes:
>
> > when depth=-1, macro GDK_ROOT_PARENT returns _gdk_root_window.
>
> sorry, I don't see the relationship between gdk_pixmap_new() and the
> GDK_ROOT_PARENT macro.
>
> > we found that _gdk_root_window is only initialized in x11 version
> > with Root_Window while not in directfb version.
>
> That is not true. Even though DirectFB doesn't have a root window at
> all, the GDK port initializes the _gdk_root_winodw variable in
> _gdk_windowing_window_init().
>
> Please take your time to write a small test case or I won't be able to
> help you. And please try to keep the discussion on thje mailing list.
>
>
> Sven
>
>

Attachment: button.c
Description: Binary data

Attachment: Makefile
Description: Binary data

Reply via email to