diff options
author | raveit65 <[email protected]> | 2017-05-07 21:55:30 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-05-07 22:06:32 +0200 |
commit | 701aee977ca3fd5dd228e0f3b1a7c95ad5971eff (patch) | |
tree | 8eeccb7cf78bb7a008c2c22830294457cb61ae4a | |
parent | eb24f803828b31837a2465ac203b2abdec80327c (diff) | |
download | eom-701aee977ca3fd5dd228e0f3b1a7c95ad5971eff.tar.bz2 eom-701aee977ca3fd5dd228e0f3b1a7c95ad5971eff.tar.xz |
use different css files for < gtk+=3.20
-rw-r--r-- | data/Makefile.am | 3 | ||||
-rw-r--r-- | data/eom-3.18.css | 11 | ||||
-rw-r--r-- | src/main.c | 4 |
3 files changed, 17 insertions, 1 deletions
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; +} @@ -49,7 +49,11 @@ #include <exempi/xmp.h> #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; |