Unable to set background color for button

Klaus Rudolph <[email protected]>
Newsgroups gmane.comp.gnome.gtkmm
Message-ID <[email protected]>
I want to change the background color of a Gtk::Button, but I simply can
not do it :-(

int main(int argc, char *argv[])
{
     auto app = Gtk::Application::create(argc, argv, "org.gtkmm.example");

     Gtk::Window window;

     Gtk::Button button("Some text");
     window.add(button);

     Gdk::RGBA color;
     color.set_rgba(0xff,0x00,0x00);
     //button.override_color(color); // this will change the text color
     button.override_background_color(color); // this change nothing :-(


     window.show_all_children();

     return app->run(window);
}

Is there any chance to set the background color? The online docs did not
say anything...
https://developer.gnome.org/gtkmm/stable/classGtk_1_1Button.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.