diff options
author | Owen Taylor <otaylor@src.gnome.org> | 1998-11-06 22:05:02 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1998-11-06 22:05:02 +0000 |
commit | e2a521922085c8010028e227f61bba59ea6b8242 (patch) | |
tree | 2500d6aa6f63aab4b58c17546532ecce8fdcca37 /gtk/gtktearoffmenuitem.c | |
parent | 3c0df19a588bd96f328bda975db8eb9fa7f79e81 (diff) | |
download | gtk+-e2a521922085c8010028e227f61bba59ea6b8242.tar.gz |
Merge from themes-2. See the ChangeLog for a somewhat detailed
history of the evolution of the changes involved. Most of this
is actually minor painting tweaks.
Diffstat (limited to 'gtk/gtktearoffmenuitem.c')
-rw-r--r-- | gtk/gtktearoffmenuitem.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gtk/gtktearoffmenuitem.c b/gtk/gtktearoffmenuitem.c index 432754d5be..fb76f1010b 100644 --- a/gtk/gtktearoffmenuitem.c +++ b/gtk/gtktearoffmenuitem.c @@ -134,9 +134,6 @@ gtk_tearoff_menu_item_paint (GtkWidget *widget, menu_item = GTK_MENU_ITEM (widget); tearoff_item = GTK_TEAROFF_MENU_ITEM (widget); - gtk_style_set_background (widget->style, widget->window, widget->state); - gdk_window_clear_area (widget->window, area->x, area->y, area->width, area->height); - x = GTK_CONTAINER (menu_item)->border_width; y = GTK_CONTAINER (menu_item)->border_width; width = widget->allocation.width - x * 2; @@ -144,11 +141,14 @@ gtk_tearoff_menu_item_paint (GtkWidget *widget, right_max = x + width; if (widget->state == GTK_STATE_PRELIGHT) - gtk_draw_shadow (widget->style, - widget->window, - GTK_STATE_PRELIGHT, - GTK_SHADOW_OUT, - x, y, width, height); + gtk_paint_box (widget->style, + widget->window, + GTK_STATE_PRELIGHT, + GTK_SHADOW_OUT, + area, widget, "menuitem", + x, y, width, height); + else + gdk_window_clear_area (widget->window, area->x, area->y, area->width, area->height); if (tearoff_item->torn_off) { |