Re: Gnome2 0.90 and GnomeUIInfo
- From: Sylvain Daubert <sly_ ifrance com>
- To: Torsten Schoenfeld <kaffeetisch web de>
- Cc: gtk-perl-list gnome org
- Subject: Re: Gnome2 0.90 and GnomeUIInfo
- Date: Tue, 23 Dec 2003 17:13:51 +0100
Torsten Schoenfeld a écrit :
On Tue, 2003-12-23 at 13:43, Sylvain Daubert wrote:
Hi all,
Aloha.
I recently updated my Gtk2/Gnome2-Perl modules and i discovered that
user_data field is no more recognized in GnomeUIInfo.
As far as I can tell, all versions of Gnome(1|2) don't recognize that
field. Which version did it work with for you?
Gnome2-Perl 0.32 (yes, it's an old-old version)
Unfortunately, i used this field with radio items to known which item
was selected.
Would using closures be an alternative? Instead of
{
type => "item",
label => "A",
callback => \&bla,
user_data => $data_for_a
},
{
type => "item",
label => "B",
callback => \&bla,
user_data => $data_for_b
}
you'd use
{
type => "item",
label => "A",
callback => sub { bla(@_, $data_for_a); }
},
{
type => "item",
label => "B",
callback => sub { bla(@_, $data_for_b); }
}
Yes, i use something like that.
Thanks.
Sylvain
Is this a bug, or a feature ?
Well, if there were versions of Gnome(1|2) that allowed using the
user_data member, it's at least a regression. Unfortunately, the
internal implementation of the GnomeUIInfo wrapping relies on being able
to use user_data for its own purposes.
Bye,
-Torsten
_____________________________________________________________________
Envie de discuter en "live" avec vos amis ? Télécharger MSN Messenger
http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]