Re: how copy gchar* pointer to other gchar*, send two widgets refs to callback function ?
- From: "Daniel K. O." <danielosmari yahoo com br>
- To: Christian Neumair <chris gnome-de org>
- Cc: Gtk Developer List <gtk-devel-list gnome org>, Mario Lopez <mariotpc gmail com>
- Subject: Re: how copy gchar* pointer to other gchar*, send two widgets refs to callback function ?
- Date: Tue, 01 Mar 2005 22:17:53 -0300
Christian Neumair escreveu:
Short answer: Doesn't work. You can only pass one extra gpointer per
callback. I see two ways of resolving this:
1. Clean
========
Model your widgets into a new object (...)
2. Quick and Dirty
==================
Write a struct containing relevant data for your callback (...)
3. Use g_object_set_data() to store the pointers in the relevant widget.
Daniel K. O.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]