diff options
author | Soeren Sandmann <sandmann@daimi.au.dk> | 2002-10-16 15:13:43 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2002-10-16 15:13:43 +0000 |
commit | ad426c896fc6c3687375ef584f6c0dd7d6e2ebd4 (patch) | |
tree | 8b7681152d4a25d2b9a0efd864a72fc074777274 /gtk/gtktearoffmenuitem.c | |
parent | 497ef033d4622b25e83ef66a933574ec3d7011d8 (diff) | |
download | gtk+-ad426c896fc6c3687375ef584f6c0dd7d6e2ebd4.tar.gz |
Make tear-off menuitems obey the "selected_shadow_type" style property.
Wed Oct 16 17:11:46 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_paint): Make
tear-off menuitems obey the "selected_shadow_type" style property.
Diffstat (limited to 'gtk/gtktearoffmenuitem.c')
-rw-r--r-- | gtk/gtktearoffmenuitem.c | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/gtk/gtktearoffmenuitem.c b/gtk/gtktearoffmenuitem.c index 8ca1dccf93..c087ad0e5a 100644 --- a/gtk/gtktearoffmenuitem.c +++ b/gtk/gtktearoffmenuitem.c @@ -145,14 +145,21 @@ gtk_tearoff_menu_item_paint (GtkWidget *widget, right_max = x + width; if (widget->state == GTK_STATE_PRELIGHT) - 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); + { + gint selected_shadow_type; + + gtk_widget_style_get (widget, + "selected_shadow_type", &selected_shadow_type, + NULL); + gtk_paint_box (widget->style, + widget->window, + GTK_STATE_PRELIGHT, + selected_shadow_type, + 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) { |