I have this code:
GdkColor color;
gdk_color_parse ("black", &color);
GdkColor color2;
gdk_color_parse ("red", &color2);
button = gtk_button_new_with_label ("Text");
g_signal_connect (button, "clicked", G_CALLBACK (a), NULL);
gtk_widget_modify_bg ( GTK_WIDGET(button), GTK_STATE_PRELIGHT, &color);
gtk_widget_modify_text ( GTK_WIDGET(button), GTK_STATE_PRELIGHT, &color2);
gtk_table_attach_defaults (GTK_TABLE (outside), button, 0, 1, 0, 1);
gtk_widget_show (button);
Although the background changes to black when moused over, the text does not change color. How can I change this?