After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 394312 - GtkTearoffMenuItem clears the background
GtkTearoffMenuItem clears the background
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkMenu
2.10.x
Other Linux
: Normal trivial
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2007-01-08 17:34 UTC by Benjamin Berg
Modified: 2011-10-01 07:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot showing the problem (8.47 KB, image/png)
2007-01-08 17:38 UTC, Benjamin Berg
Details
Screenshot #2 (1.93 KB, image/png)
2007-01-09 14:31 UTC, Michael Monreal
Details

Description Benjamin Berg 2007-01-08 17:34:40 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.
Comment 1 Benjamin Berg 2007-01-08 17:38:05 UTC
Created attachment 79766 [details]
screenshot showing the problem
Comment 2 Michael Monreal 2007-01-09 14:31:14 UTC
Created attachment 79850 [details]
Screenshot #2

This also affects the new Clearlooks "Glossy" theme
Comment 3 Benjamin Berg 2007-01-09 15:17:12 UTC
Michael: What your screenshot shows has nothing to do with this bug and is an engine issue.
Comment 4 Matthias Clasen 2007-02-06 14:16:15 UTC
> 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
Comment 5 Benjamin Berg 2007-02-07 09:24:00 UTC
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.
Comment 6 Diego Escalante Urrelo (not reading bugmail) 2008-03-21 06:11:07 UTC
What if it's just removed? Seems like gtkmenuitem.c does not use that.
Comment 7 Emmanuele Bassi (:ebassi) 2011-10-01 07:24:46 UTC
tearoff menus have been deprecated in gtk 3.1