change text in button



Hi,
I have a button with the text build like this:
gtk_button_set_label(GTK_BUTTON(button), text);
gdk_color_parse ("red",&color2)
gtk_widget_modify_fg (GTK_WIDGET(button), GTK_STATE_NORMAL, &color2);

I can not change the color of the text (only when I click on the butten..the 'markes' that the button is selected are 'red' then.) How could I reach the label in the butten in order to change the color? something like this button->label ? Or maybe I need to create a new label, and 'give them the color and pack it' again into the button?

thanks a lot for any advises!

calmar





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]