News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

What is this widget? (C::B unix version)

Started by dev, April 24, 2009, 11:32:00 PM

Previous topic - Next topic

dev

Hello all,
I am playing with some GTK+ themes, and I run into some troubles when trying to make it look well in C::B.
Here's a screenshot:


I cannot make these elements look well because I don't know what GTK widgets they are, or how I should refer to them.
If someone does not know how GTK theming looks like - in short: you create a bunch of styles and applies them to some GTK widgets in way like this:
# widget styles
class "GtkWidget" style "theme-default"
class "GtkButton"        style "theme-button"
(...)
# button
widget_class "*<GtkButton>"             style "theme-button"
# menu
widget_class "*.<GtkMenuItem>.*"        style "theme-menu-item"
widget_class "*<GtkMenuBar>.<GtkMenuItem>*"    style "theme-menubar-item"

Now the problem is, that the widgets selected on the screenshot are taking the color scheme from the button, and I cannot stop that. If I knew what exactly widget it is, I may apply an individual style to it.

Once the problem will be resolved, I will be able to apply some more pleasant colors on buttons/scrollbars, and the theme will be ready for posting it on www.xfce-look.org  :D.

thomas

"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Jenna

Quote from: thomas on April 26, 2009, 04:55:10 PM
"step into function"

If I understand right, the OP wants to know the Gtk+ class the widget is derived from.

It's a pseudo-class called tool and it's most likely (in this case) derived from a GTKButton:

Quote from: wxWidgets-docuThe tool pseudo-class objects specify toolbar buttons and have the following properties:

http://docs.wxwidgets.org/trunk/overview_xrcformat.html#xrc_wxtoolbar

dev

Thanks for response.
So because this widget is directly derived from the Button class, I decided to do a little workaround.
The result is pretty ok  :).