From 27ff0169edd989c14771c6aa15d739260e76177b Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Fri, 15 Feb 2019 08:39:48 +1100 Subject: [PATCH] Updated uxtheme-GTK_Theming patch --- ...nitial-implementation-of-GTK-backend.patch | 72 +++++++++---------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/patches/uxtheme-GTK_Theming/0001-uxtheme-Initial-implementation-of-GTK-backend.patch b/patches/uxtheme-GTK_Theming/0001-uxtheme-Initial-implementation-of-GTK-backend.patch index 32bde094..53cf03cb 100644 --- a/patches/uxtheme-GTK_Theming/0001-uxtheme-Initial-implementation-of-GTK-backend.patch +++ b/patches/uxtheme-GTK_Theming/0001-uxtheme-Initial-implementation-of-GTK-backend.patch @@ -3678,67 +3678,67 @@ index 00000000..bbee8e87 + return FALSE; +} + -+HRESULT uxtheme_gtk_CloseThemeData(HTHEME theme) { return 0 }; -+HRESULT uxtheme_gtk_EnableThemeDialogTexture(HWND hwnd, DWORD flags) { return 0 }; -+HRESULT uxtheme_gtk_EnableTheming(BOOL enable) { return 0 }; ++HRESULT uxtheme_gtk_CloseThemeData(HTHEME theme) { return 0; }; ++HRESULT uxtheme_gtk_EnableThemeDialogTexture(HWND hwnd, DWORD flags) { return 0; }; ++HRESULT uxtheme_gtk_EnableTheming(BOOL enable) { return 0; }; +HRESULT uxtheme_gtk_GetCurrentThemeName(LPWSTR filename, int filename_maxlen, + LPWSTR color, int color_maxlen, -+ LPWSTR size, int size_maxlen) { return 0 }; -+DWORD uxtheme_gtk_GetThemeAppProperties(void) { return 0 }; -+BOOL uxtheme_gtk_IsThemeDialogTextureEnabled(HWND hwnd) { return 0 }; -+HTHEME uxtheme_gtk_OpenThemeDataEx(HWND hwnd, LPCWSTR classlist, DWORD flags) { return 0 }; ++ LPWSTR size, int size_maxlen) { return 0; }; ++DWORD uxtheme_gtk_GetThemeAppProperties(void) { return 0; }; ++BOOL uxtheme_gtk_IsThemeDialogTextureEnabled(HWND hwnd) { return 0; }; ++HTHEME uxtheme_gtk_OpenThemeDataEx(HWND hwnd, LPCWSTR classlist, DWORD flags) { return 0; }; +void uxtheme_gtk_SetThemeAppProperties(DWORD flags) { }; -+HRESULT uxtheme_gtk_SetWindowTheme(HWND hwnd, LPCWSTR sub_app_name, LPCWSTR sub_id_list) { return 0 }; ++HRESULT uxtheme_gtk_SetWindowTheme(HWND hwnd, LPCWSTR sub_app_name, LPCWSTR sub_id_list) { return 0; }; +HRESULT uxtheme_gtk_GetThemeBool(HTHEME htheme, int part_id, int state_id, -+ int prop_id, BOOL *value) { return 0 }; ++ int prop_id, BOOL *value) { return 0; }; +HRESULT uxtheme_gtk_GetThemeColor(HTHEME htheme, int part_id, int state_id, -+ int prop_id, COLORREF *color) { return 0 }; ++ int prop_id, COLORREF *color) { return 0; }; +HRESULT uxtheme_gtk_GetThemeEnumValue(HTHEME htheme, int part_id, int state_id, -+ int prop_id, int *value) { return 0 }; ++ int prop_id, int *value) { return 0; }; +HRESULT uxtheme_gtk_GetThemeFilename(HTHEME htheme, int part_id, int state_id, -+ int prop_id, LPWSTR filename, int maxlen) { return 0 }; ++ int prop_id, LPWSTR filename, int maxlen) { return 0; }; +HRESULT uxtheme_gtk_GetThemeFont(HTHEME htheme, HDC hdc, int part_id, int state_id, -+ int prop_id, LOGFONTW *font) { return 0 }; ++ int prop_id, LOGFONTW *font) { return 0; }; +HRESULT uxtheme_gtk_GetThemeInt(HTHEME htheme, int part_id, int state_id, -+ int prop_id, int *value) { return 0 }; ++ int prop_id, int *value) { return 0; }; +HRESULT uxtheme_gtk_GetThemeIntList(HTHEME htheme, int part_id, int state_id, -+ int prop_id, INTLIST *intlist) { return 0 }; ++ int prop_id, INTLIST *intlist) { return 0; }; +HRESULT uxtheme_gtk_GetThemeMargins(HTHEME htheme, HDC hdc, int part_id, int state_id, -+ int prop_id, LPRECT rect, MARGINS *margins) { return 0 }; ++ int prop_id, LPRECT rect, MARGINS *margins) { return 0; }; +HRESULT uxtheme_gtk_GetThemeMetric(HTHEME htheme, HDC hdc, int part_id, int state_id, -+ int prop_id, int *value) { return 0 }; ++ int prop_id, int *value) { return 0; }; +HRESULT uxtheme_gtk_GetThemePosition(HTHEME htheme, int part_id, int state_id, -+ int prop_id, POINT *point) { return 0 }; ++ int prop_id, POINT *point) { return 0; }; +HRESULT uxtheme_gtk_GetThemePropertyOrigin(HTHEME htheme, int part_id, int state_id, -+ int prop_id, PROPERTYORIGIN *origin) { return 0 }; ++ int prop_id, PROPERTYORIGIN *origin) { return 0; }; +HRESULT uxtheme_gtk_GetThemeRect(HTHEME htheme, int part_id, int state_id, -+ int prop_id, RECT *rect) { return 0 }; ++ int prop_id, RECT *rect) { return 0; }; +HRESULT uxtheme_gtk_GetThemeString(HTHEME htheme, int part_id, int state_id, -+ int prop_id, LPWSTR buffer, int maxlen) { return 0 }; ++ int prop_id, LPWSTR buffer, int maxlen) { return 0; }; +HRESULT uxtheme_gtk_GetThemeTransitionDuration(HTHEME htheme, int part_id, int state_id_from, -+ int state_id_to, int prop_id, DWORD *duration) { return 0 }; -+BOOL uxtheme_gtk_GetThemeSysBool(HTHEME htheme, int bool_id) { return 0 }; -+COLORREF uxtheme_gtk_GetThemeSysColor(HTHEME htheme, int color_id) { return 0 }; -+HRESULT uxtheme_gtk_GetThemeSysFont(HTHEME htheme, int font_id, LOGFONTW *font) { return 0 }; -+HRESULT uxtheme_gtk_GetThemeSysInt(HTHEME htheme, int int_id, int *value) { return 0 }; -+int uxtheme_gtk_GetThemeSysSize(HTHEME htheme, int size_id) { return 0 }; -+HRESULT uxtheme_gtk_GetThemeSysString(HTHEME htheme, int string_id, LPWSTR buffer, int maxlen) { return 0 }; ++ int state_id_to, int prop_id, DWORD *duration) { return 0; }; ++BOOL uxtheme_gtk_GetThemeSysBool(HTHEME htheme, int bool_id) { return 0; }; ++COLORREF uxtheme_gtk_GetThemeSysColor(HTHEME htheme, int color_id) { return 0; }; ++HRESULT uxtheme_gtk_GetThemeSysFont(HTHEME htheme, int font_id, LOGFONTW *font) { return 0; }; ++HRESULT uxtheme_gtk_GetThemeSysInt(HTHEME htheme, int int_id, int *value) { return 0; }; ++int uxtheme_gtk_GetThemeSysSize(HTHEME htheme, int size_id) { return 0; }; ++HRESULT uxtheme_gtk_GetThemeSysString(HTHEME htheme, int string_id, LPWSTR buffer, int maxlen) { return 0; }; +HRESULT uxtheme_gtk_DrawThemeBackgroundEx(HTHEME htheme, HDC hdc, int part_id, int state_id, -+ LPCRECT rect, const DTBGOPTS *options) { return 0 }; ++ LPCRECT rect, const DTBGOPTS *options) { return 0; }; +HRESULT uxtheme_gtk_DrawThemeTextEx(HTHEME htheme, HDC hdc, int part_id, int state_id, + LPCWSTR text, int length, DWORD flags, RECT *rect, -+ const DTTOPTS *options) { return 0 }; ++ const DTTOPTS *options) { return 0; }; +HRESULT uxtheme_gtk_GetThemeBackgroundRegion(HTHEME htheme, HDC hdc, int part_id, -+ int state_id, LPCRECT rect, HRGN *region) { return 0 }; ++ int state_id, LPCRECT rect, HRGN *region) { return 0; }; +HRESULT uxtheme_gtk_GetThemePartSize(HTHEME htheme, HDC hdc, int part_id, int state_id, -+ RECT *rect, THEMESIZE type, SIZE *size) { return 0 }; ++ RECT *rect, THEMESIZE type, SIZE *size) { return 0; }; +HRESULT uxtheme_gtk_GetThemeTextExtent(HTHEME htheme, HDC hdc, int part_id, int state_id, + LPCWSTR text, int length, DWORD flags, -+ LPCRECT bounding_rect, LPRECT extent_rect) { return 0 }; ++ LPCRECT bounding_rect, LPRECT extent_rect) { return 0; }; +HRESULT uxtheme_gtk_GetThemeTextMetrics(HTHEME htheme, HDC hdc, int part_id, int state_id, -+ TEXTMETRICW *metric) { return 0 }; -+BOOL uxtheme_gtk_IsThemeBackgroundPartiallyTransparent(HTHEME htheme, int part_id, int state_id) { return 0 }; -+BOOL uxtheme_gtk_IsThemePartDefined(HTHEME htheme, int part_id, int state_id) { return 0 }; ++ TEXTMETRICW *metric) { return 0; }; ++BOOL uxtheme_gtk_IsThemeBackgroundPartiallyTransparent(HTHEME htheme, int part_id, int state_id) { return 0; }; ++BOOL uxtheme_gtk_IsThemePartDefined(HTHEME htheme, int part_id, int state_id) { return 0; }; + +#endif /* HAVE_GTK_GTK_H */ diff --git a/dlls/uxtheme/metric.c b/dlls/uxtheme/metric.c