GdkPixmap



hi

I have a pixbuf image from which i derive a GdkPixmap
say pix.


for(i=0;i<5;i++) {
GdkPixmap *temp_pixmap = g_object_ref(G_OBJECT(pix));
gdk_draw_rectangle(...);
...
...
g_object_unref(G_OBJECT(temp_pixmap));
}

As the pixmaps form the images are always updated
rather than the original pix.
Isnt g_object_ref suppose to create a completely new
image or does always point to the same image. Maybe
thats why the image keeps updating itself.

Could someone clarify this for me

Thank You
Abhishek Samuel





		
___________________________________________________________ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com



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