pike.git / src / post_modules / GTK2 / source / support.c

version» Context lines:

pike.git/src/post_modules/GTK2/source/support.c:263:    struct object *o;    if (!obj) {    push_int(0);    return;    }    if (pgtk2_is_object_program(def))    if ((o=g_object_get_data(((void *)obj),"pike_object"))) {    ref_push_object(o);    return;    } -  o=low_clone(def); -  call_c_initializers(o); +  o=fast_clone_object(def);    ((struct object_wrapper *)o->storage)->obj=obj;    pgtk2__init_object(o);       /* Extra ref already added in pgtk2__init_object */    push_object(o);    return;   }         void push_pgdk2object(void *obj, struct program *def, int owned) {    struct object *o;    if (!obj) {    push_int(0);    return;    } -  o=low_clone(def); -  call_c_initializers(o); +  o=fast_clone_object(def);    ((struct object_wrapper *)o->storage)->obj=obj;    ((struct object_wrapper *)o->storage)->owned = owned;    push_object(o);    return;   }      GObject *get_pg2object(struct object *from, struct program *type) {    struct object_wrapper * o;    if (!from)    return NULL;