GNOME Bugzilla – Bug 580696
Toolbar appearance
Last modified: 2011-11-02 06:49:22 UTC
Please describe the problem: Look at the shot: http://img-fotki.yandex.ru/get/3408/denis-cheremisov.8/0_27099_de2b0269_orig Search, Link and Delete items has one size (it's my system-wide size, as in Nautilus, Eog, Evince, etc), but Text, Tools and Notebook has different. Steps to reproduce: Change your toolbar font size putting the following lines into your ~/.gtkrc-2.0: style "smaller-text" { font_name = "8" } widget_class "*ToolButton*" style "smaller-text" widget_class "*StatusBar*" style "smaller-text" Actual results: These buttons don't respect system settings. Expected results: They must respect them. Does this happen every time? Other information:
Thanks for catching this, should be an easy fix.
If you define ToolMenuButton then it works fine. You can define you .gtkrc like this: style "smaller-text" { font_name = "8" } widget_class "*ToolButton*" style "smaller-text" widget_class "*ToolMenuButton*" style "smaller-text" widget_class "*StatusBar*" style "smaller-text" Anyway, we must found a way to define ToolButton style for ToolMenuButton class, I will check with Mike tomorow.
Everaldo, did you ever make any more progress on this?
Why can't we just refactor it to MenuToolButton from ToolMenuButton? I realize that it's probably not the best solution, but it'll make it behave like a ToolButton instead. I see that the problem is caused by extending ToggleToolButton, but I can't for the life of me figure out a way to fix it. is ToolMenuButton exposed anywhere? Is there a reason not to fix it this way?
We could go one step further and call it MenuToggleToolButton, just in case some people do weird things to ToggleToolButtons... and make it a practice to name all of our extensions of Gtk# classes in such a way as to include the original class name. e.g. NoteWindow : Window.
This would work, though I'm pretty sure there's also a programmatic way to apply the style of a different widget class. Any patch is welcome.
*** Bug 538940 has been marked as a duplicate of this bug. ***
Tested with tweak-tool in GNOME 3.0 and I do not see this behavior. Is this still an issue?
denis.cheremisov, can you please confirm bug against tomboy 1.6.x ?
Please feel free to reopen this bug if the problem still occurs with a newer version of tomboy.