mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
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:
parent
497ef033d4
commit
ad426c896f
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user