On 6/28/06, Pedro Aguilar <[EMAIL PROTECTED]> wrote:
> Hi,
>
> After cross-compiling GTK on DirectFB for the PNX8550 MIPS processor,
> I'm developing a GUI that needs to do basically a couple of things:
>
> - Display normal GTK menus: buttons, images and the like.
> - Display video streams.
>
> I already have the video streaming part that uses the DirectFB API
> (IDirectFBVideoProvider, ImageProvider, ...) and I'm trying to add to
> this app a nice GTK GUI.
>
> When starting the app I display the GTK menu normally, but when I want
> to display the video streaming I'm having problems because I'm using the
> DirectFB's video/image providers that need an IDirectFB *, an
> IDirectFSurface *, ..., but since GTK/GDK hide the low level graphics
> details (they're not accessible by their APIs), I cannot get any pointer
> to the IDirectFB or to the surface that GTK is using, therefore I'm
> doing the following:
>

The are accesible you can create obtain a DirectFB surface from
the GdkWindow

see the header gdkdirectfb.h its  public.


> When I want to display a video stream I call gtk_main_quit() to free all
> the resources that GTK was using, then I display the video stream using
> the DirectFB API. Until here everything goes smoothly, but when I want
> to display again the menu, I release all the DirectFB resources and call
> again the GTK init funcs (gtk_init(), gtk_main (), ...), but I don't see
> anything (the app doesn't crash).
> Calling again the GTK init funcs after a gtk_main_quit() is not an
> issue, I tested it.
>
> The problem could be that after releasing the DirectFB resources,
> something remains 'dirty' causing the GTK GUI not to be visible.
>
I'm not surprised we leak a bit still this is a good test case.

Report a bug.

http://developer.gnome.org/tools/bug.html

> Do you have any idea or hint for solving this issue?
> Could it be a problem with the surfaces? (I'm using DSCAPS_PRIMARY)
> Is there any other way for doing it?
>
You can used a window surface as I mentioned.

Mike

> Thanks a lot!
>
> Pedro Aguilar
>
>
> _______________________________________________
> directfb-dev mailing list
> [email protected]
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
>

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

Reply via email to