Re: [gtk-list] Re: ItemFactory anyone?
- From: Jan Kratochvil <short ucw cz>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: ItemFactory anyone?
- Date: Thu, 14 Jan 1999 20:00:14 +0100
> Jan Kratochvil wrote:
> >
> > > Jan Kratochvil wrote:
> > > > > If you already know what the menu items are going to be and they won't
> > > > > change at runtime you can just use a case statement in your callback.
> > > >
> > > > Oh my god, why just don't cast the needed pointer (it WILL be probably pointer),
> > > > to "guint"? Like in the following example:
> > >
> > > Oh my god, why don't you just go break your code on the Alpha then? :)
> > > You'll get a friendly little "segmentation fault" when you assign a
> > > 64-bit
> > > pointer to a 32-bit guint.
> > >
> > > Shaw Terwilliger
> Why not have the callback data, which is common to all entries, point to
> an array of pointers. Use the integer to index into the array of
> pointers?
>
> Todd.
It's just ineffective (but surely better than the glist solution). BTW
(maintainers, listen... :-) ) does anyone know why the hell it is defined
as guint and not gpointer and why it is named "action" and not "data" as
usual in other places of GTK+? Wasn't it meant as for some other meaning?
Lace
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]