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> Tue Oct 15 17:25:47 2002 Owen Taylor <otaylor@redhat.com>
* modules/input/gtkimcontextxim.c (get_im): Don't use * 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> Tue Oct 15 17:25:47 2002 Owen Taylor <otaylor@redhat.com>
* modules/input/gtkimcontextxim.c (get_im): Don't use * 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> Tue Oct 15 17:25:47 2002 Owen Taylor <otaylor@redhat.com>
* modules/input/gtkimcontextxim.c (get_im): Don't use * 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> Tue Oct 15 17:25:47 2002 Owen Taylor <otaylor@redhat.com>
* modules/input/gtkimcontextxim.c (get_im): Don't use * 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> Tue Oct 15 17:25:47 2002 Owen Taylor <otaylor@redhat.com>
* modules/input/gtkimcontextxim.c (get_im): Don't use * 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> Tue Oct 15 17:25:47 2002 Owen Taylor <otaylor@redhat.com>
* modules/input/gtkimcontextxim.c (get_im): Don't use * 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; right_max = x + width;
if (widget->state == GTK_STATE_PRELIGHT) if (widget->state == GTK_STATE_PRELIGHT)
gtk_paint_box (widget->style, {
widget->window, gint selected_shadow_type;
GTK_STATE_PRELIGHT,
GTK_SHADOW_OUT, gtk_widget_style_get (widget,
area, widget, "menuitem", "selected_shadow_type", &selected_shadow_type,
x, y, width, height); NULL);
else gtk_paint_box (widget->style,
gdk_window_clear_area (widget->window, area->x, area->y, area->width, area->height); 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) if (tearoff_item->torn_off)
{ {