Re: Storing a pointer in Gtk::SelectionData
- From: Murray Cumming <murrayc murrayc com>
- To: Johannes Schmid <jhs jsschmid de>
- Cc: gtkmm-list gnome org
- Subject: Re: Storing a pointer in Gtk::SelectionData
- Date: Sat, 26 Apr 2008 18:29:40 +0200
On Sat, 2008-04-26 at 14:48 +0200, Johannes Schmid wrote:
> Hi!
>
> Probably a silly question, but how can I savely store a pointer to an
> object in a Gtk::SelectionData. I guess I have to use
>
> Gtk::SelectionData::set (int format, guint8* data, int length)
>
> somehow but I cannot figure out how to store a pointer there in a
> portable and save way. I only want to use the SelectionData within one
> application (no cross application drag & drop).
GINT_TO_POINTER() and GPOINTER_TO_INT() might be useful.
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]