Updating branch refs/heads/master
         to 182268a82b85680fdb85cee5b8da5d1de78e04a0 (commit)
       from 57d2362a8d2a6c5c6bf198fb1ef6e0984cf2a9a5 (commit)

commit 182268a82b85680fdb85cee5b8da5d1de78e04a0
Author: PaweÅ‚ Forysiuk <[email protected]>
Date:   Sat Apr 14 03:25:01 2012 +0200

    Work around black border around widgets on Win32

 midori/midori-websettings.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/midori/midori-websettings.c b/midori/midori-websettings.c
index 7b13a87..bc46679 100644
--- a/midori/midori-websettings.c
+++ b/midori/midori-websettings.c
@@ -1227,6 +1227,14 @@ midori_web_settings_init (MidoriWebSettings* 
web_settings)
         "* { -webkit-box-shadow: none !important; }");
     #endif
 
+    #if defined (_WIN32) && WEBKIT_CHECK_VERSION (1, 7, 1)
+    /* Try to work-around black borders on native widgets and GTK+2 on Win32 */
+    midori_web_settings_add_style (web_settings, "black-widgets-workaround",
+    "input[type='checkbox'] { -webkit-appearance: checkbox !important }"
+    " input[type='radio'] { -webkit-appearance: radio !important }"
+    " * { -webkit-appearance: none !important }");
+    #endif
+
     g_signal_connect (web_settings, "notify::default-encoding",
                       G_CALLBACK (notify_default_encoding_cb), NULL);
     g_signal_connect (web_settings, "notify::default-font-family",
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to