GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sun Nov 23, 2014 9:58 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: GdkColor problem
PostPosted: Thu Mar 18, 2010 4:38 am 
Offline
GTK+ Geek

Joined: Thu Jul 30, 2009 1:49 pm
Posts: 86
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 19, 2010 11:54 pm 
Offline
Never Seen the Sunlight

Joined: Wed Jul 23, 2008 10:31 am
Posts: 2406
Location: Slovenia
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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 21, 2010 5:07 am 
Offline
GTK+ Geek

Joined: Thu Jul 30, 2009 1:49 pm
Posts: 86
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group