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.
This commit is contained in:
Soeren Sandmann 2002-10-16 15:13:43 +00:00 committed by Søren Sandmann Pedersen
parent 497ef033d4
commit ad426c896f
7 changed files with 45 additions and 8 deletions

View File

@ -1,3 +1,8 @@
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.
Tue Oct 15 17:25:47 2002 Owen Taylor <otaylor@redhat.com>
* modules/input/gtkimcontextxim.c (get_im): Don't use

View File

@ -1,3 +1,8 @@
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.
Tue Oct 15 17:25:47 2002 Owen Taylor <otaylor@redhat.com>
* modules/input/gtkimcontextxim.c (get_im): Don't use

View File

@ -1,3 +1,8 @@
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.
Tue Oct 15 17:25:47 2002 Owen Taylor <otaylor@redhat.com>
* modules/input/gtkimcontextxim.c (get_im): Don't use

View File

@ -1,3 +1,8 @@
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.
Tue Oct 15 17:25:47 2002 Owen Taylor <otaylor@redhat.com>
* modules/input/gtkimcontextxim.c (get_im): Don't use

View File

@ -1,3 +1,8 @@
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.
Tue Oct 15 17:25:47 2002 Owen Taylor <otaylor@redhat.com>
* modules/input/gtkimcontextxim.c (get_im): Don't use

View File

@ -1,3 +1,8 @@
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.
Tue Oct 15 17:25:47 2002 Owen Taylor <otaylor@redhat.com>
* modules/input/gtkimcontextxim.c (get_im): Don't use

View File

@ -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)
{