Re: [gtkmm] Drang and Drop data changes between source's signal and target drop signal



>MTBList::drag_data_get(312):Packaged pointer: 0x83508f0
>ImageNotebook::drop_drag_data_rec(136):passed pointer: 0x84b9968
>
>Here are the code snippets:
>gtk_selection_data_set( selection_data, selection_data->target,
>    8,    // data format
>(const guchar*)pMTB,	// data pointer
>sizeof( pMTB ) );      // data size
>
>pMTB = reinterpret_cast<MTB*>( selection_data->data );
>context->drag_finish( TRUE, FALSE, time ); // ok

i don't know for certain, but ... dnd is not just for
intra-application communication. hence, the dnd system needs to 
copy the data from the source before passing it to the target since
the two may be in different address spaces.



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