 |
GTK+ Forums Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
|
|
|
| Author |
Message |
|
|
harinath88 GTK+ Geek
Joined: 30 Jul 2009 Posts: 88
|
Posted: Thu Mar 18, 2010 4:38 am Post subject: GdkColor problem |
|
|
Hi Everybody,
I am facing problem making info in color .
GdkColor white;
gdk_color_parse("0xFFFFFF" ,&white); Its fine iam able to get the color.
But i do as bellow i am unable to get the color.
struct Color
{
GdkColor fg_ok;
GdkColor fg_notok;
}Config_color;
gdk_color_parse("0x000000",&Config_color.fg_ok);
gdk_color_parse("0xFFFFFF",&Config_color.fg_notok);
Can any one help me where iam doing wrong.
Thanks & Regards ,
Hartinath. |
|
| Back to top |
|
 |
tadeboro Never Seen the Sunlight
Joined: 23 Jul 2008 Posts: 2114 Location: Slovenia
|
Posted: Fri Mar 19, 2010 11:54 pm Post subject: |
|
|
Hello.
Are you sure your first command is parsing color correctly? "0xFFFFFF" is not color format that gdk_color_parse() would be able to parse. You will probably want to try using "#FFFFFF" instead and I'm sure things will work afterwards.
Tadej |
|
| Back to top |
|
 |
harinath88 GTK+ Geek
Joined: 30 Jul 2009 Posts: 88
|
Posted: Sun Mar 21, 2010 5:07 am Post subject: |
|
|
Hi Tadji,
Thanks for ur kind replay.
Yes Tadji while i am debugging i am able to see values of red ,green,blue contents .
But now i am able to get the color as per ur kind info.
Thanks and regards,
Harianth. |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group CodeBB 1.0 Beta 2
|