summaryrefslogtreecommitdiff
path: root/libraries/libfm/patches/0007-3586178-gtk3-css-strings-have-significantly-differen.patch
blob: e795f0fc8896290464e29d86b8e35d6d538156c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From 83f0300a130f9c2ec83bbd5af138b0c5633fc608 Mon Sep 17 00:00:00 2001
From: galtgendo <galt_gendo@sourceforge.net>
Date: Tue, 13 Nov 2012 00:04:56 +0200
Subject: [PATCH 07/22] [#3586178]gtk3 css strings have significantly different
 syntax from gtk2 rc strings

---
 src/gtk/fm-tab-label.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/gtk/fm-tab-label.c b/src/gtk/fm-tab-label.c
index 12c78ca..3bae9d4 100644
--- a/src/gtk/fm-tab-label.c
+++ b/src/gtk/fm-tab-label.c
@@ -44,20 +44,21 @@ static void fm_tab_label_class_init(FmTabLabelClass *klass)
 #if GTK_CHECK_VERSION(3, 0, 0)
     provider = gtk_css_provider_new();
     gtk_css_provider_load_from_data(provider,
+        "#tab-close-btn {\n"
+            "-GtkWidget-focus-padding : 0;\n"
+            "-GtkWidget-focus-line-width : 0;\n"
+            "padding : 0;\n"
+        "}\n", -1, NULL);
 #else
     gtk_rc_parse_string(
-#endif
         "style \"close-btn-style\" {\n"
             "GtkWidget::focus-padding = 0\n"
             "GtkWidget::focus-line-width = 0\n"
             "xthickness = 0\n"
             "ythickness = 0\n"
         "}\n"
-        "widget \"*.tab-close-btn\" style \"close-btn-style\""
-#if GTK_CHECK_VERSION(3, 0, 0)
-        , -1, NULL
+        "widget \"*.tab-close-btn\" style \"close-btn-style\"");
 #endif
-    );
 }
 
 /* FIXME: add g_object_unref (provider); on class destroy? */
-- 
1.8.0.1