diff options
Diffstat (limited to 'libraries/libfm/patches/0007-3586178-gtk3-css-strings-have-significantly-differen.patch')
-rw-r--r-- | libraries/libfm/patches/0007-3586178-gtk3-css-strings-have-significantly-differen.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/libraries/libfm/patches/0007-3586178-gtk3-css-strings-have-significantly-differen.patch b/libraries/libfm/patches/0007-3586178-gtk3-css-strings-have-significantly-differen.patch new file mode 100644 index 0000000000..e795f0fc88 --- /dev/null +++ b/libraries/libfm/patches/0007-3586178-gtk3-css-strings-have-significantly-differen.patch @@ -0,0 +1,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 + |