fix toolbar button hilite in Luna theme
This commit is contained in:
@ -5,6 +5,7 @@
|
|||||||
* src/Makefile.am:
|
* src/Makefile.am:
|
||||||
* src/Makefile.msc:
|
* src/Makefile.msc:
|
||||||
* src/Theme/gtk-2.0/gtkrc: Rename DLL back to "wimp"
|
* src/Theme/gtk-2.0/gtkrc: Rename DLL back to "wimp"
|
||||||
|
* src/wimp_style.c: Fix hilite around toolbar buttons in the Luna theme
|
||||||
|
|
||||||
2004-03-20 Raymond Penners <raymond@dotsphinx.com>
|
2004-03-20 Raymond Penners <raymond@dotsphinx.com>
|
||||||
|
|
||||||
|
|||||||
@ -1476,6 +1476,19 @@ option_menu_get_props (GtkWidget *widget,
|
|||||||
*indicator_spacing = default_option_indicator_spacing;
|
*indicator_spacing = default_option_indicator_spacing;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static gboolean is_toolbar_child(GtkWidget * wid)
|
||||||
|
{
|
||||||
|
while(wid)
|
||||||
|
{
|
||||||
|
if(GTK_IS_TOOLBAR(wid))
|
||||||
|
return TRUE;
|
||||||
|
else
|
||||||
|
wid = wid->parent;
|
||||||
|
}
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
draw_box (GtkStyle *style,
|
draw_box (GtkStyle *style,
|
||||||
GdkWindow *window,
|
GdkWindow *window,
|
||||||
@ -1499,7 +1512,7 @@ draw_box (GtkStyle *style,
|
|||||||
width, height, state_type, area))
|
width, height, state_type, area))
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (GTK_IS_TOOLBAR (widget->parent))
|
else if (is_toolbar_child (widget->parent))
|
||||||
{
|
{
|
||||||
if (xp_theme_draw(window, XP_THEME_ELEMENT_TOOLBAR_BUTTON, style, x, y,
|
if (xp_theme_draw(window, XP_THEME_ELEMENT_TOOLBAR_BUTTON, style, x, y,
|
||||||
width, height, state_type, area))
|
width, height, state_type, area))
|
||||||
|
|||||||
Reference in New Issue
Block a user