Below is my gtkrc file:
pixmap_path "test_gtkmm/icons/"
style "btn2" {
engine "pixmap" { image { function = BOX recolorable = TRUE state = NORMAL stretch = TRUE file = "btn2.png" } image { function = BOX recolorable = TRUE state = PRELIGHT stretch = TRUE file = "btn22.png" } image { function = BOX recolorable = TRUE state = ACTIVE stretch = TRUE file = "btn22.png" } } } widget "abc" style "btn2"
MyWindow::MyWondow
{
Gtk::RC::parse_string("test_gtkmm/gtkmmrc");
btn2.set_size_request(100,100);
btn2.set_name("abc"); } It can't work,why?
|