summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndriy Grytsenko <andrej@rep.kiev.ua>2016-02-20 22:26:23 +0200
committerAndriy Grytsenko <andrej@rep.kiev.ua>2016-02-20 22:26:23 +0200
commit236dc496d8d7b0957c9fb1b6402ba07779f288d3 (patch)
tree952576ccbd073de89ebab759d27f60c2f914f22d
parentb04ac270d19b29b33bbcaaa0043edc8f8ab96947 (diff)
Correct right parameters for macro RR_CHECK_VERSION()
-rw-r--r--src/appearance.c2
-rw-r--r--src/preview.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/src/appearance.c b/src/appearance.c
index bb5d499..a9b139d 100644
--- a/src/appearance.c
+++ b/src/appearance.c
@@ -195,7 +195,7 @@ void on_font_menu_item_font_set(GtkFontButton *w, gpointer data)
void on_font_active_display_font_set(GtkFontButton *w, gpointer data)
{
if (mapping) return;
-#if RR_CHECK_VERSION(3, 5, 0)
+#if RR_CHECK_VERSION(3, 5, 29)
preview_update_set_osd_active_font(write_font(w, "ActiveOnScreenDisplay"));
#else /* for older versions of openbox */
preview_update_set_osd_active_font(write_font(w, "OnScreenDisplay"));
diff --git a/src/preview.c b/src/preview.c
index 9ae7a73..ada6eb3 100644
--- a/src/preview.c
+++ b/src/preview.c
@@ -553,7 +553,7 @@ static GdkPixbuf* preview_window(RrTheme *theme, const gchar *titlelayout,
switch (*layout) {
case 'D':
a = focus ?
-#if RR_CHECK_VERSION(3, 5, 2)
+#if RR_CHECK_VERSION(3, 5, 28)
theme->btn_desk->a_focused_unpressed :
theme->btn_desk->a_unfocused_unpressed;
#else
@@ -563,7 +563,7 @@ static GdkPixbuf* preview_window(RrTheme *theme, const gchar *titlelayout,
break;
case 'S':
a = focus ?
-#if RR_CHECK_VERSION(3, 5, 2)
+#if RR_CHECK_VERSION(3, 5, 28)
theme->btn_shade->a_focused_unpressed :
theme->btn_shade->a_unfocused_unpressed;
#else
@@ -573,7 +573,7 @@ static GdkPixbuf* preview_window(RrTheme *theme, const gchar *titlelayout,
break;
case 'I':
a = focus ?
-#if RR_CHECK_VERSION(3, 5, 2)
+#if RR_CHECK_VERSION(3, 5, 28)
theme->btn_iconify->a_focused_unpressed :
theme->btn_iconify->a_unfocused_unpressed;
#else
@@ -583,7 +583,7 @@ static GdkPixbuf* preview_window(RrTheme *theme, const gchar *titlelayout,
break;
case 'M':
a = focus ?
-#if RR_CHECK_VERSION(3, 5, 2)
+#if RR_CHECK_VERSION(3, 5, 28)
theme->btn_max->a_focused_unpressed :
theme->btn_max->a_unfocused_unpressed;
#else
@@ -593,7 +593,7 @@ static GdkPixbuf* preview_window(RrTheme *theme, const gchar *titlelayout,
break;
case 'C':
a = focus ?
-#if RR_CHECK_VERSION(3, 5, 2)
+#if RR_CHECK_VERSION(3, 5, 28)
theme->btn_close->a_focused_unpressed :
theme->btn_close->a_unfocused_unpressed;
#else