diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-02-05 00:49:50 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-02-05 00:49:50 +0000 |
commit | 836953b5bac27ad61d4e82111524be3c2c984476 (patch) | |
tree | 60ea6bdab2d984a3e41478369b78634f338d07ff /gtk/gtktearoffmenuitem.c | |
parent | 4fc7347cec716718e722758c4b8f679493b171bf (diff) | |
download | gtk+-836953b5bac27ad61d4e82111524be3c2c984476.tar.gz |
Fix the drawing of tearoff menu items which don't come first in their
Thu Feb 5 01:50:19 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_paint): Fix
the drawing of tearoff menu items which don't come first in their
menu. (#33311)
Diffstat (limited to 'gtk/gtktearoffmenuitem.c')
-rw-r--r-- | gtk/gtktearoffmenuitem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtktearoffmenuitem.c b/gtk/gtktearoffmenuitem.c index fce5fd7068..1a2609eefa 100644 --- a/gtk/gtktearoffmenuitem.c +++ b/gtk/gtktearoffmenuitem.c @@ -144,8 +144,8 @@ gtk_tearoff_menu_item_paint (GtkWidget *widget, x = widget->allocation.x + GTK_CONTAINER (menu_item)->border_width; y = widget->allocation.y + GTK_CONTAINER (menu_item)->border_width; - width = widget->allocation.width - x * 2; - height = widget->allocation.height - y * 2; + width = widget->allocation.width - GTK_CONTAINER (menu_item)->border_width * 2; + height = widget->allocation.height - GTK_CONTAINER (menu_item)->border_width * 2; right_max = x + width; if (widget->state == GTK_STATE_PRELIGHT) |