how to use gtk rc file?
- From: "chunlong84" <chunlong84 gmail com>
- To: "gtkmm-list gnome org" <gtkmm-list gnome org>
- Subject: how to use gtk rc file?
- Date: Tue, 9 Jun 2009 15:57:34 +0800
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]