problems initializing this (static) widget....
- From: Christian Seberino <seberino spawar navy mil>
- To: gtk-list gnome org
- Subject: problems initializing this (static) widget....
- Date: Mon, 22 Apr 2002 02:24:59 -0700
This line works to put a NULL in this pointer:
GdkColormap* Colors::colormap = (GdkColormap*) 0;
Something is weird about /GdkColor/ because same thing
*will not* work with it... i.e. "= (GdkColor) 0" *wrong*.
The following will work for static GdkColor var initialization:
GdkColor Colors::white = {0};
GdkColor Colors::black = {0};
GdkColor Colors::red[] = {{0}};
GdkColor Colors::blue[] = {{0}};
*what is so special about GdkColor besides that it is /not/ a pointer
that makes it be initialized this weird way and not "= (GdkColor) 0" way*????
Can you explain what "{0}" means too?
Any help greatly appreciated.
Sincerely,
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]