GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GdkColor problem

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
harinath88
GTK+ Geek


Joined: 30 Jul 2009
Posts: 88

PostPosted: Thu Mar 18, 2010 4:38 am    Post subject: GdkColor problem Reply with quote

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

PostPosted: Fri Mar 19, 2010 11:54 pm    Post subject: Reply with quote

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

PostPosted: Sun Mar 21, 2010 5:07 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP