From 66571e37e466d4594f30cd740d3db4443449c3c3 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sun, 7 May 2017 21:55:30 +0200 Subject: use different css files for < gtk+=3.20 --- data/Makefile.am | 3 ++- data/eom-3.18.css | 11 +++++++++++ src/main.c | 4 ++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 data/eom-3.18.css diff --git a/data/Makefile.am b/data/Makefile.am index 979bd15..fe3b253 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -34,7 +34,8 @@ pkgconfig_DATA = eom.pc themedir = $(pkgdatadir) theme_DATA = \ gtkrc \ - eom.css + eom.css \ + eom-3.18.css EXTRA_DIST = \ $(theme_DATA) \ diff --git a/data/eom-3.18.css b/data/eom-3.18.css new file mode 100644 index 0000000..2d0ec50 --- /dev/null +++ b/data/eom-3.18.css @@ -0,0 +1,11 @@ +EomThumbNav .horizontal.scrollbar { + -GtkScrollbar-has-backward-stepper: false; + -GtkScrollbar-has-secondary-backward-stepper: false; + -GtkScrollbar-has-forward-stepper: false; + -GtkScrollbar-has-secondary-forward-stepper: false; + -GtkScrollbar-min-slider-length: 60; +} + +EomStatusbar GtkProgressBar { + -GtkProgressBar-min-horizontal-bar-height: 14; +} diff --git a/src/main.c b/src/main.c index d5c5079..e1ef481 100644 --- a/src/main.c +++ b/src/main.c @@ -49,7 +49,11 @@ #include #endif +#if GTK_CHECK_VERSION (3, 20, 0) #define EOM_CSS_FILE_PATH EOM_DATA_DIR G_DIR_SEPARATOR_S "eom.css" +#else +#define EOM_CSS_FILE_PATH EOM_DATA_DIR G_DIR_SEPARATOR_S "eom-3.18.css" +#endif static EomStartupFlags flags; -- cgit v1.2.1