Re: XShmPixmap for GdkPixmap



On Wed, 2007-05-23 at 15:36 -0400, Owen Taylor wrote:
> On Wed, 2007-05-23 at 15:12 -0400, Tristan Van Berkom wrote:
> 
> > Something like this ?
> > 
> > GdkPixmap *
> > gdk_pixmap_new_shared (GdkDrawable *drawable,
> > 			gint         width,
> > 			gint         height,
> > 			gint         depth,
> > 			GdkImage   **image_ret)
> > 
> > This way one could be specific about when using an XShmPixmap
> > suits thier need, which is good enough for me.
> 
> Multiple returns, ugh :-)
> 
> Maybe just:
> 
>  GdkPixmap *
>  gdk_image_get_shared_pixmap(GdkImage *image);
> 

Ok I tried all this out and its working nicely, I taylored
a patch and posted it here:
   http://bugzilla.gnome.org/show_bug.cgi?id=441853

Hoping to hear feedback soon :)

Cheers,
                -Tristan





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]