Re: [gtk-list] Re: $64k questons
- From: Havoc Pennington <rhp zirx pair com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: $64k questons
- Date: Sat, 1 May 1999 00:33:19 -0400 (EDT)
On Fri, 30 Apr 1999, pavel wrote:
>
> I think I've figured out the answer to the first one:
> event->button.state & GDK_SHIFT_MASK
> Right?....
>
Yep.
> > Just curious, how come Gtk relies on passing strings like "destroy"
> > instead of macros like GTK_DESTROY?
> >
Strings are easier to type and less headache for GtkObject authors to
maintain. Also they don't clutter the C namespace. Typing a string
incorrectly will trigger a runtime error so macros don't get you any
better error checking. Strings are internally converted to a numeric ID so
there is no loss in efficiency.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]