LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 04-04-2004, 03:46 AM   #1
fromzj
LQ Newbie
 
Registered: Jul 2002
Posts: 18

Rep: Reputation: 0
get-background-color in GTK+-2.0


Hi,

I am new to GTK programming. When I try to create a button to call a color picker. I am using GTK+2.0 on RedHat 9, so the colorbutton is not supported. It is OK to use a drawing area as the example. But I have a question:

Anytime when the color of the color picker changed, the program use the command:

widget-modify-bg ()

to set the color to the drawing area.

But I can not find the bidirection function, that is query the color of the drawing area bg, so it can be set to the color picker as an initial reference. Is there any way to do that?

Any help will be appreciated!

Zhang
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VI Background Text Color mahugl Linux - Newbie 3 12-15-2013 10:12 PM
Change background color chingyenccy Linux - Newbie 6 01-23-2005 03:17 AM
TTY background color! hitesh_linux Linux - General 1 09-17-2004 06:22 AM
ncurses background color gtanghookup Programming 1 09-02-2003 08:17 PM
Is there a way to change background color out of X? purpleburple Linux - General 1 01-23-2003 08:32 AM


All times are GMT -5. The time now is 05:32 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration