mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-20 05:50:11 +00:00
Emulate WinXP's drawing of menu separators
This commit is contained in:
parent
37d5b4147a
commit
68d222c757
@ -1,3 +1,8 @@
|
||||
2006-04-01 Dom Lachowicz <cinamod@hotmail.com>
|
||||
|
||||
* modules/engines/ms-windows/msw_style.c (draw_hline): Emulate WinXP's
|
||||
drawing of menu separators
|
||||
|
||||
2006-03-31 Behdad Esfahbod <behdad@gnome.org>
|
||||
|
||||
* gtk/gtkrecentmanager.c: Convert filenames to UTF-8 before printing
|
||||
|
@ -1,3 +1,8 @@
|
||||
2006-04-01 Dom Lachowicz <cinamod@hotmail.com>
|
||||
|
||||
* modules/engines/ms-windows/msw_style.c (draw_hline): Emulate WinXP's
|
||||
drawing of menu separators
|
||||
|
||||
2006-03-31 Behdad Esfahbod <behdad@gnome.org>
|
||||
|
||||
* gtk/gtkrecentmanager.c: Convert filenames to UTF-8 before printing
|
||||
|
@ -34,9 +34,10 @@ style "msw-default"
|
||||
|
||||
GtkScrolledWindow::scrollbar_spacing = 1
|
||||
|
||||
GtkSeparatorMenuItem::horizontal-padding = 2
|
||||
|
||||
engine "wimp"
|
||||
{
|
||||
}
|
||||
}
|
||||
class "*" style "msw-default"
|
||||
|
||||
|
@ -2373,8 +2373,22 @@ draw_hline (GtkStyle * style,
|
||||
GtkWidget * widget,
|
||||
const gchar * detail, gint x1, gint x2, gint y)
|
||||
{
|
||||
if (xp_theme_is_active () && detail && !strcmp(detail, "menuitem")) {
|
||||
if(xp_theme_draw (window, XP_THEME_ELEMENT_MENU_SEPARATOR, style, x1, y, x2, 1, state_type, area))
|
||||
return;
|
||||
else {
|
||||
if (area)
|
||||
gdk_gc_set_clip_rectangle (style->dark_gc[state_type], area);
|
||||
|
||||
gdk_draw_line (window, style->dark_gc[state_type], x1, y, x2, y);
|
||||
|
||||
if (area)
|
||||
gdk_gc_set_clip_rectangle (style->dark_gc[state_type], NULL);
|
||||
}
|
||||
} else {
|
||||
parent_class->draw_hline (style, window, state_type, area, widget,
|
||||
detail, x1, x2, y);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user