Trying to change background/foreground color....Using Gtk+ and C.
GdkColor color;
gdk_color_parse( "#0080FF", &color );
gtk_widget_modify_fg( GTK_WIDGET(button), GTK_STATE_SELECTED, &color );
gtk_widget_modify_fg( GTK_WIDGET(button), GTK_STATE_NORMAL, &color );
I am using above functionality but it is not giving any results.
I am looking for something asked in this question(But in C):
http://stackoverflow.com/questions/1241020/gtk-create-a-colored-regular-button
how to Change Style of Button using button Style? Can anybody provide some examples?