Re: widget path peculiarity in gtk resource file (gtkrc)
- From: Robert Pearce <rob bdt-home demon co uk>
- To: gtkmm-list gnome org
- Subject: Re: widget path peculiarity in gtk resource file (gtkrc)
- Date: Tue, 23 Oct 2007 18:18:34 +0100
Hi Gezim,
On Tue, 23 Oct 2007 09:21:39 -0600 you wrote:
>
> If I put "widget mainDisplayWindow.mainVBox.buttonHBox.closeButton" in
> the rc file, the style is not applied to my button, rather what I have
> to put instead is:
> "widget mainDisplayWindow.mainVBox.buttonHBox.closeButton*" or to be
> more precise:
> "mainDisplayWindow.mainVBox.buttonHBox.closeButton.?????????????????????????????" (took some trial an error to get the exact char length :)).
>
> My question is, what follows after the closeButton.? The gtkrc
> documentation
> (http://library.gnome.org/devel/gtk/2.12/gtk-Resource-Files.html) states
> that '[t]he widget path ... consist of a "." separated list of all the
> parents of the widget and the widget itself'. So why do I have to
> specify an asterisk after the widget?
Because you don't actually want to apply the style to the button. The button itself is a container, and doesn't do any (much?) drawing. Instead you need to apply the style to the widgets the button contains, probably an image and a label.
That said, the rules are severely confusing and don't always seem to work. I have a problem with a resource file trying to set the style of the text in some buttons and it manages to control all states except the default (sensitive but not hovered over).
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]