[gnome-maps] css: Replace deprecated properties



commit 66406921b8efd4972a02fa63abe75c7744d1fec6
Author: Codreanu Andrei <andrei codreanu94 gmail com>
Date:   Tue Jan 19 14:53:50 2016 +0200

    css: Replace deprecated properties
    
    The problem is that these two warning pop up everytime we try
    to run gnome-maps due to GtkWidget deprecation (since version 3.14).
    
    (org.gnome.Maps:13949): Gtk-WARNING **: Theme parsing error:
    application.css:13:33: The style property GtkWidget:focus-line-width
    is deprecated and shouldn't be used anymore. It will be removed in a
    future version
    
    (org.gnome.Maps:13949): Gtk-WARNING **: Theme parsing error:
    application.css:14:30: The style property GtkWidget:focus-padding is
    deprecated and shouldn't be used anymore. It will be removed in a
    future version
    
    To fix this, we remove 'GtkWidget-focus-line-width' and
    'GtkWidget-focus-padding' and use 'outline-width' and 'padding' insted,
    which is a CSS standard property and a suitable replacement.
    This does give the same behavior.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=760444

 data/gnome-maps.css |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/data/gnome-maps.css b/data/gnome-maps.css
index 307765b..ba2abb3 100644
--- a/data/gnome-maps.css
+++ b/data/gnome-maps.css
@@ -10,8 +10,7 @@
     background-image: none;
     padding: 0;
     border: 1px solid @insensitive_borders;
-    -GtkWidget-focus-line-width: 1;
-    -GtkWidget-focus-padding: 1;
+    outline-width: 1px;
     -GtkButton-image-spacing: 0;
     -GtkButton-interior-focus: true;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]