LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:17 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration