[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
GdkColor weird type? Why not pointer like GtkWidget*....
- From: Christian Seberino <seberino spawar navy mil>
- To: gtk-list gnome org
- Subject: GdkColor weird type? Why not pointer like GtkWidget*....
- Date: Mon, 22 Apr 2002 10:19:46 -0700
I've seen examples in GTK+ books where GdkColor widgets
are not declared to be pointers (GdkColor* myColor;)
but instead declared like this... (GdkColor myColor;)
I don't know if this begins to explain g++ not liking
this initialization or not....
GdkColor Color:myStaticColor = (GdkColor 0); // *won't work!!*
*only* this works...
GdkColor Color:myStaticColor = {0}; // *won't work!!*
Is GdkColor some weird type or something?? Do you
know why {0} works but not "(GdkColor) 0"???
Thanks,
Chris
--
=======================================================
| Dr. Christian Seberino || (619) 553-7940 (office) |
| SPAWARSYSCEN 2363 || (619) 553-2836 (fax) |
| 53560 HULL ST || |
| SAN DIEGO CA 92152-5001 || seberino spawar navy mil |
=======================================================
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]