mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-09-13 09:17:20 -07:00
uxtheme-GTK_Theming: Improve forward compatibility for GTK 3.14.
This commit is contained in:
parent
dff451a72c
commit
eb2fe4eb91
@ -1,4 +1,4 @@
|
||||
From 00a03dba614dc158902fb9264e99f2f0cd3fd0ae Mon Sep 17 00:00:00 2001
|
||||
From 372cc1308fcae0aef6ba85e0a1944f2c939dd732 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Lackner <sebastian@fds-team.de>
|
||||
Date: Sun, 9 Aug 2015 21:09:50 +0200
|
||||
Subject: uxthemegtk: Correctly render buttons with GTK >= 3.14.0.
|
||||
@ -8,7 +8,7 @@ Subject: uxthemegtk: Correctly render buttons with GTK >= 3.14.0.
|
||||
1 file changed, 9 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/dlls/uxtheme-gtk/button.c b/dlls/uxtheme-gtk/button.c
|
||||
index b4b2d02..f3918b1 100644
|
||||
index b4b2d02..b867448 100644
|
||||
--- a/dlls/uxtheme-gtk/button.c
|
||||
+++ b/dlls/uxtheme-gtk/button.c
|
||||
@@ -29,6 +29,10 @@
|
||||
@ -16,7 +16,7 @@ index b4b2d02..f3918b1 100644
|
||||
#include "wine/debug.h"
|
||||
|
||||
+#if !GTK_CHECK_VERSION(3, 14, 0)
|
||||
+# define GTK_STATE_FLAG_CHECKED 0
|
||||
+# define GTK_STATE_FLAG_CHECKED (1 << 11)
|
||||
+#endif
|
||||
+
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(uxthemegtk);
|
||||
@ -53,5 +53,5 @@ index b4b2d02..f3918b1 100644
|
||||
case CBS_MIXEDDISABLED:
|
||||
return GTK_STATE_FLAG_INSENSITIVE | GTK_STATE_FLAG_INCONSISTENT;
|
||||
--
|
||||
2.5.0
|
||||
2.1.0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user