pike.git / lib / modules / _Image_XCF.pmod

version» Context lines:

pike.git/lib/modules/_Image_XCF.pmod:97:    mapping flags = ([]);    array (Parasite) parasites;       void decode_properties( array properties )    {    foreach(properties, mapping p)    {    switch(p->type)    {    case PROP_ACTIVE_CHANNEL: -  parent->active_channel = this_object(); +  parent->active_channel = this;    break;    case PROP_SELECTION: -  parent->selection = this_object(); +  parent->selection = this;    break;    INT(OPACITY,opacity);    FLAG(VISIBLE,visible);    FLAG(LINKED,linked);    FLAG(PRESERVE_TRANSPARENCY,preserve_transparency);    FLAG(EDIT_MASK,edit_mask);    FLAG(SHOW_MASKED,show_masked);    INT(TATTOO,tattoo);    case PROP_COLOR:    sscanf( (string)p->data, "%c%c%c", r, g, b);
pike.git/lib/modules/_Image_XCF.pmod:162:       object parent;       void decode_properties( array properties )    {    foreach( properties, mapping p)    {    switch(p->type)    {    case PROP_ACTIVE_LAYER: -  parent->active_layer = this_object(); +  parent->active_layer = this;    break;    case PROP_SELECTION: -  parent->selection = this_object(); +  parent->selection = this;    break;    case PROP_OFFSETS:    xoffset = p->data->get_int( 0 );    yoffset = p->data->get_int( 1 );    break;    INT(OPACITY,opacity);    FLAG(VISIBLE,visible);    FLAG(LINKED,linked);    FLAG(PRESERVE_TRANSPARENCY,preserve_transparency);    FLAG(APPLY_MASK,apply_mask);
pike.git/lib/modules/_Image_XCF.pmod:342:    }    }       void create( mapping data )    {    type = data->type;    decode_properties( data->properties );    width = data->width;    height = data->height;    foreach(data->layers, mapping l ) -  layers += ({ Layer( l, this_object() ) }); +  layers += ({ Layer( l, this ) });    foreach(data->channels, mapping c ) -  channels += ({ Channel( c, this_object() ) }); +  channels += ({ Channel( c, this ) });    }   }            GimpImage __decode( string|mapping what )   {    if(stringp(what)) what = ___decode( what );    return GimpImage(what);   }