GNOME Bugzilla – Bug 394312
GtkTearoffMenuItem clears the background
Last modified: 2011-10-01 07:24:46 UTC
When the GtkTearoffMenuItem is not prelight/selected, it calls gdk_window_clear_area to clear the area. No other menu item does something similar, and it causes problems if the border around the menu item is very small or zero. In that case the border around the window will be cleared again by the menu item.
Created attachment 79766 [details] screenshot showing the problem
Created attachment 79850 [details] Screenshot #2 This also affects the new Clearlooks "Glossy" theme
Michael: What your screenshot shows has nothing to do with this bug and is an engine issue.
> if the border around the menu item is very small or zero Benjamin, can you provide an rc file snipplet to reproduce this problem, with say, testgtk
Here a gtkrc snippet. The problem can be seen in the testmenus test. style "menu-test" { GtkMenu::vertical-padding = 0 GtkMenu::horizontal-padding = 0 xthickness = 0 ythickness = 0 # buildin does not draw a line when x/ythickness is 0 ... engine "clearlooks" {} } class "GtkMenu" style "menu-test" The same happens with SVN clearlooks.
What if it's just removed? Seems like gtkmenuitem.c does not use that.
tearoff menus have been deprecated in gtk 3.1