Arvin, IIUC you're trying to "get a dump" of a toplevel gdkwindow and 
related child gdkwindows, right?
in this case you don't need to access directly the dfbwindow which is 
behind the toplevel gdkwindow, but just access the toplevel gdkwindow

     gdk_window = gtk_widget_get_parent_window ( <child gtk widget> );
     gdk_window_get_geometry ( gdk_window, &x, &y, &width, &height, &depth);
     gdk_pixbuf = gdk_pixbuf_get_from_drawable (NULL, gdk_window, 
gdk_colormap_get_system(),0,0,0,0,width, height);
     gdk_pixbuf_save (gdk_pixbuf, <screenshot_file_name>, "png", NULL, 
NULL);

hope this helps

Attilio


Arvind Ayyangar wrote:
> does that mean that a surface dump of the Top Level Window will
> include the dumps of the subsurfaces?
> Is it possible to get a list of subsurfaces of a CoreSurface (surface
> of the top level window)?
> 
> On 1/4/07, Kumar Siddharth <[EMAIL PROTECTED]> wrote:
> 
>>
>>What i know is: GTKDirectFB creates ONE dfb-window and ONE surface for the
>>Top Level Window. For any child window, dfb-window and surface is not
>>created rather a subsurface of the TopLevel Surface is assigned to the
>>widget. Hope this is correct and it answers your query.
>>
>>Regards,
>>Siddharth
>>
>>
>>
>>-----Original Message-----
>>From: Arvind Ayyangar [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, January 04, 2007 4:14 PM
>>To: Kumar Siddharth
>>Cc: directfb-dev
>>Subject: Re: [directfb-dev] surfaces associated with a window
>>
>>
>>gdk_directfb_surface_lookup returns only one surface. What about the
>>other surfaces associated with the window.
>>for e.g, in gtk applications, wen u add many widgets into the
>>container, many surface are created, which probably correspondto each
>>widget. But only one directfb window is created, which is for the top
>>level window. The surface returned is on the top level window in this
>>case. The surfaces of the other widgets are not returned..
>>
>>how does gtk/dfb know which surfaces are to be painted when a
>>gtk_widget_show call is made?
>>
>>On 1/4/07, Kumar Siddharth <[EMAIL PROTECTED]> wrote:
>>
>>>Hi,
>>>
>>>You may try "IDirectFBSurface* gdk_directfb_surface_lookup(GdkWindow
>>>*window)" ..
>>>
>>>Regards,
>>>Siddharth
>>>
>>>-----Original Message-----
>>>From: [EMAIL PROTECTED]
>>>[mailto:[EMAIL PROTECTED] Behalf Of Arvind Ayyangar
>>>Sent: Thursday, January 04, 2007 3:10 PM
>>>To: directfb-dev
>>>Subject: [directfb-dev] surfaces associated with a window
>>>
>>>
>>>hi ppl,
>>> how can I get the surfaces associated with a window?
>>>Is there an API?
>>>
>>>--
>>>Regards
>>>ARviND AyyangaR
>>>
>>>_______________________________________________
>>>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