how to use gtk rc file?



I don't know why the below method is wrong:

The gtkrc file :

pixmap_path "./icons"

style "new_btn" {

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 "new_btn"

source code:

MyWindow::MyWindow()
{
	Gtk::RC::parse_string("./gtkrc");
	btnNew.set_size_request(100,100);
	btnNew.set_name("abc");
}

execution result:
-:1: error: scanner: unknown error - e.g. `style'




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