Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


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

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


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!



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 > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:46 PM.

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