On Tue, 2008-12-16 at 14:13 +0530, zaheer ahmad wrote: > hi, > > iam trying to take the snapshot of a widget window in a pixmap using > gdk_draw_drawable, however it seems to work only if the widget is > active (visible on the screen). you should not be using 'active' in this case: 'active' has a very precise meaning in gtk+ (see gtk_widget_activate()). a widget that is not on screen will not receive the expose event, and it will not be drawn (otherwise you'd have to draw every single widget, even hidden ones). > can somebody confirm on this and also if there is any other means to > get access to pixmaps of inactive windows with gtk+ 2.14 you can use gtk_widget_get_snapshot() to retrieve a GdkPixmap of any widget - including obscured ones. read the documentation. before gtk+ 2.14 you can't really do anything to obtain a snapshot of a partially onscreen or obscured widget. ciao, Emmanuele. -- Emmanuele Bassi, W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.net _______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list