GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Tue Oct 21, 2014 11:57 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: gtk_progress_bar back and fore color
PostPosted: Tue Jan 21, 2014 9:11 am 
Offline
GTK+ Geek

Joined: Wed Mar 18, 2009 2:26 pm
Posts: 62
Hello All

Is there any way the you can set the back ground and fore ground color of a gtk_progress bar.
The typical widget functions background and foreground functions do no work.

Thanks in advance.

_________________
Hello, העלו, Здравствулте!


Top
 Profile  
 
 Post subject: Re: gtk_progress_bar back and fore color
PostPosted: Wed Jan 22, 2014 5:32 pm 
Offline
GTK+ Guru

Joined: Fri Mar 25, 2011 5:16 pm
Posts: 177
Location: USA
GTK+3.x uses CSS to set colors. A GtkProgressBar's "background color" area is called the trough. It's color is set using background-color. Here's an example in C language:

http://www.gtkforums.com/viewtopic.php?f=3&t=988&p=195494=CSS%3A+GtkProgressBar#p195494

People could better help you if you posted your:
  1. O.S.
  2. Version of GTK+
  3. Programming language

Please read my permanent post: *** READ BEFORE POSTING ***
http://www.gtkforums.com/viewtopic.php?f=3&t=178057


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

All times are UTC


Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest


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