GdkColor weird type? Why not pointer like GtkWidget*....



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]