You are not using "gdk_window" var anywhere in the code..!! Siddharth
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Arvind Ayyangar Sent: Friday, January 05, 2007 12:50 PM To: Attilio Fiandrotti Cc: directfb-dev Subject: Re: [directfb-dev] surfaces associated with a window I tried the code in the entry.c example. gdk_window = gtk_widget_get_parent_window ( window ); gdk_window_get_geometry ( window->window, &x, &y, &width, &height, &depth); gdk_pixbuf = gdk_pixbuf_get_from_drawable (NULL, GDK_WINDOW(window->window), gdk_colormap_get_system(),0,0,0,0,width, height); gdk_pixbuf_save (gdk_pixbuf,"mydump", "png", NULL, NULL); gtk_container_get_surface_dump (GTK_CONTAINER(window),"/home/arvind/dump","cel"); Note that gdk_window is returned as NULL, so i tried using window->window. On exucuting, i get a gray surface in the dump and a directfb waring.. (!!!) *** ONCE [sub surface dumping not supported yet] *** [idirectfbsurface.c:2116 in IDirectFBSurface_Dump()] Am missing out something very obvious? On 1/4/07, Attilio Fiandrotti <[EMAIL PROTECTED]> wrote: > That works, as it's the way screenshots of the debian-installer (which > is gtkdfb based) are taken. > Moreover, that's indipendent from the gdk backend used. > i suspect you're confusing gtkwindow and gdkwindow: a gtkwindow's > gdkwindow can be accessed as window->window > > Attilio > 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
