Hi,

Leandro A. F. Pereira wrote:
> Greetings,
> 
> In my application I have to save the contents of a widget to a PNG
> file. So far it works (using GDK Pixbuf and gdk_pixbuf_save), but
> garbage appears if the window is obscured by another window, or if
> some part of it is hidden.
> 
> How can someone get a GtkWidget's GdkWindow in a way no garbage will
> show up if that window isn't completely visible? I know that GTK+ is
> double-buffered, so it must be some way.
> 

as a naive idea, wouldn't it help to bring the window to front? One problem I
have with screenshooting windows is that the widnow decorations are missing.
Does somebody has a pointer to an example that includes the window decodation?

Stefan


> By the way, the code I am currently using is available at [1]. See
> tree_view_save_image().
> 
> [1] 
> http://svn.berlios.de/wsvn/hardinfo/trunk/hardinfo2/util.c?op=file&rev=0&sc=0
> 
> Thanks in advance,
> 

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to