User forums > General (but related to Code::Blocks)
What is this widget? (C::B unix version)
(1/1)
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:
--- Code: ---# 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"
--- End code ---
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:
"step into function"
Jenna:
--- Quote from: thomas on April 26, 2009, 04:55:10 pm ---"step into function"
--- End quote ---
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-docu ---The tool pseudo-class objects specify toolbar buttons and have the following properties:
--- End quote ---
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 :).
Navigation
[0] Message Index
Go to full version