diff options
author | Jaime Velasco Juan <jsagarribay@gmail.com> | 2016-10-14 09:18:46 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-10-26 16:25:49 +0200 |
commit | 77ff3ada62d2a2eb2061b082b7f47fe8ac275c1a (patch) | |
tree | 4aea373cf26ac49f65be02f1083358fded492eb3 /gtk | |
parent | ed980824c4c262dc1a3fb225460f858ad8502f1d (diff) | |
download | gtk+-77ff3ada62d2a2eb2061b082b7f47fe8ac275c1a.tar.gz |
win32 theme: use TS_TRUE in GetThemePartSize
Several styles return a size of 0x0px when using TS_DRAW, as
we don't pass a RECT to draw into.
https://bugzilla.gnome.org/show_bug.cgi?id=773221
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkwin32theme.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkwin32theme.c b/gtk/gtkwin32theme.c index 3861e507d4..0b960511bb 100644 --- a/gtk/gtkwin32theme.c +++ b/gtk/gtkwin32theme.c @@ -459,7 +459,7 @@ gtk_win32_theme_get_part_size (GtkWin32Theme *theme, if (use_xp_theme && GetThemePartSize != NULL && htheme != NULL) { hdc = GetDC (NULL); - res = GetThemePartSize (htheme, hdc, part, state, NULL, 2 /*TS_DRAW*/, &size); + res = GetThemePartSize (htheme, hdc, part, state, NULL, 1 /* TS_TRUE */, &size); ReleaseDC (NULL, hdc); if (SUCCEEDED (res)) @@ -472,7 +472,6 @@ gtk_win32_theme_get_part_size (GtkWin32Theme *theme, } } #endif - gtk_win32_get_theme_part_size (theme->class_name, part, state, width, height); } |