全部博文(96)
分类: LINUX
2010-05-06 16:13:46
widget_class "*.GtkButton.*" style "button-content"
|
Classpath |
the window |
GtkWindow |
the button inside the window |
GtkWidget.GtkButton |
the label inside the button |
GtkWidget.GtkButton.GtkLabel |
widget "my-app.my-button" style "my-app button fix"
class "*" style "default"
class "GtkButton" style "button"
This will work great for normal buttons, but it does not work for toggle buttons. This is because GtkToggleButton matches against the "*" with a higher priority than it does against the "GtkButton" match. The styles are merged as following:
lowest |
|
gtk |
Priority of the buildin theme |
application |
dunno what this is for, if application use this they will be overriden by the theme. |
theme |
Default priority of themes |
rc |
gtkrc files set in the GTK2_RC_FILES enviroment variable and the standard files ~/.gtkrc-2.0 and /etc/gtk-2.0/gtkrc |
highest |
|
As said earlier, engines are used to define the look and extend the styles. For example to use the Clearlooks engine, you can just do the following.
style "some-style" {
engine "clearlooks" {
# engine specific settings go here
}
}
This means the Clearlooks engine will be used with its default settings. You can modify engine settings in the block. For a description of the possible options for different engines please refere to their documentation at .