gtk_widget_get_parent returns NULL, so passing that as an argument
gives me an error
gdk_window_get_geometry: assertion `GDK_IS_WINDOW (window)' failed


On 1/5/07, Kumar Siddharth <[EMAIL PROTECTED]> wrote:
>
> 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?
Arvind Ayyangar

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

Reply via email to