LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   get-background-color in GTK+-2.0 (https://www.linuxquestions.org/questions/programming-9/get-background-color-in-gtk-2-0-a-165976/)

fromzj 04-04-2004 03:46 AM

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


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