All pastes #26175 Raw Edit

Mine

public text v1 · immutable
#26175 ·published 2005-10-21 15:43 UTC
rendered paste body
void initGObject(GObject *object, JGRef *ref)
{
    
    if (!GTK_IS_WINDOW(object))	{
    	g_printerr("Going into toggle_ref from initGObject\n");
    	g_object_add_toggle_ref (object, toggleNotify, ref);
    	g_printerr("Coming out of toggle_ref in initGObject\n");
    
    	if (GTK_IS_OBJECT (object))	{
        	gtk_object_sink ((GtkObject*) object);
    	}
    	else {
        	g_object_unref(object);
    	}
    }
}