Skip to content
  • Federico Mena Quintero's avatar
    Your eyes are bloodshot. · 37ac7d59
    Federico Mena Quintero authored
    
    
    Your eyes are bloodshot.
    
    Your mouth starts to foam.
    
    Your hands are shaking.
    
    You know your need your fix.
    
    NEED MORE ABSTRACTION!
    
    2000-04-12  Federico Mena Quintero  <federico@helixcode.com>
    
    	This comes from an excellent idea by Tim Janik (timj@gtk.org) to
    	hook to the last unref operation.
    
    	* gdk-pixbuf/gdk-pixbuf.c (gdk_pixbuf_set_last_unref_handler): New
    	function to set the last unref handler for a pixbuf.
    	(gdk_pixbuf_finalize): New function to actually finalize a pixbuf.
    	It calls the pixbuf's destroy notification function and frees the
    	GdkPixbuf structure itself.
    	(gdk_pixbuf_unref): Use the last unref function of the pixbuf if
    	available.
    
    	* gdk-pixbuf/gdk-pixbuf-private.h (struct _GdkPixbuf): New fields
    	for the last unref handler and its user data.
    
    	* gdk-pixbuf/gdk-pixbuf-data.c (gdk_pixbuf_new_from_data): Use
    	g_new0() to allocate the pixbuf.
    
    	* gdk-pixbuf/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
    	Fixed the call to gtk_signal_new() for the "frame_...
    37ac7d59