Author Topic: What is this widget? (C::B unix version)  (Read 2371 times)

Offline dev

  • Single posting newcomer
  • *
  • Posts: 6
What is this widget? (C::B unix version)
« on: April 24, 2009, 11:32:00 pm »
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: [Select]
# 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.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: What is this widget? (C::B unix version)
« Reply #1 on: April 26, 2009, 04:55:10 pm »
"step into function"
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: What is this widget? (C::B unix version)
« Reply #2 on: April 26, 2009, 05:43:00 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-docu
The tool pseudo-class objects specify toolbar buttons and have the following properties:

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

Offline dev

  • Single posting newcomer
  • *
  • Posts: 6
Re: What is this widget? (C::B unix version)
« Reply #3 on: April 26, 2009, 06:54:26 pm »
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  :).