[gnome-software] Add back gtk+ 3.18 compatibility



commit f51c829c4a76567139090fd3b3d8ad26c6168553
Author: Kalev Lember <klember redhat com>
Date:   Fri Dec 18 11:55:50 2015 +0100

    Add back gtk+ 3.18 compatibility
    
    Use css selectors that work with both gtk+ 3.18 and 3.20.

 configure.ac         |    2 +-
 src/gtk-style-hc.css |    4 ++--
 src/gtk-style.css    |    4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2c30e6f..2901fe9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,7 +59,7 @@ GLIB_GSETTINGS
 dnl ---------------------------------------------------------------------------
 dnl - Check library dependencies
 dnl ---------------------------------------------------------------------------
-PKG_CHECK_MODULES(GTK, gtk+-3.0 >= 3.19.1 gio-unix-2.0)
+PKG_CHECK_MODULES(GTK, gtk+-3.0 >= 3.18.2 gio-unix-2.0)
 PKG_CHECK_MODULES(PACKAGEKIT, packagekit-glib2 >= 1.0.11)
 PKG_CHECK_MODULES(APPSTREAM, appstream-glib >= 0.5.5)
 PKG_CHECK_MODULES(SQLITE, sqlite3)
diff --git a/src/gtk-style-hc.css b/src/gtk-style-hc.css
index 83b4892..318185b 100644
--- a/src/gtk-style-hc.css
+++ b/src/gtk-style-hc.css
@@ -136,12 +136,12 @@
        background-color: transparent;
 }
 
-box.star {
+box.star, GtkBox.star {
        background-color: transparent;
        background-image: none;
 }
 
-button.star {
+button.star, .button.star {
        -GtkWidget-focus-padding: 0;
        background-color: transparent;
        background-image: none;
diff --git a/src/gtk-style.css b/src/gtk-style.css
index 6f87d34..94c4ea3 100644
--- a/src/gtk-style.css
+++ b/src/gtk-style.css
@@ -140,12 +140,12 @@
        background-color: transparent;
 }
 
-box.star {
+box.star, GtkBox.star {
        background-color: transparent;
        background-image: none;
 }
 
-button.star {
+button.star, .button.star {
        -GtkWidget-focus-padding: 0;
        background-color: transparent;
        background-image: none;


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