aboutsummaryrefslogtreecommitdiff
path: root/shell/shell.c
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2020-05-25 10:03:43 -0700
committerLeandro Pereira <leandro@hardinfo.org>2020-05-25 10:03:43 -0700
commit3e3e9a11bc73f58e9b6bc24efc89e99ad1a73193 (patch)
treefa55469f8be4bd589141fb0e96a9cb2e15f71352 /shell/shell.c
parentb3078492f75d0694cbfc6c002fb267250877483d (diff)
Fix build with GTK+3
Diffstat (limited to 'shell/shell.c')
-rw-r--r--shell/shell.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/shell.c b/shell/shell.c
index 872bf593..1bcdb714 100644
--- a/shell/shell.c
+++ b/shell/shell.c
@@ -877,6 +877,10 @@ static gboolean update_field(gpointer data)
return FALSE;
}
+#if GTK_CHECK_VERSION(3, 0, 0)
+#define RANGE_SET_VALUE(...)
+#define RANGE_GET_VALUE(...) 0
+#else
#define RANGE_SET_VALUE(tree, scrollbar, value) \
do { \
GtkRange CONCAT(*range, __LINE__) = \
@@ -888,6 +892,7 @@ static gboolean update_field(gpointer data)
#define RANGE_GET_VALUE(tree, scrollbar) \
gtk_range_get_value( \
GTK_RANGE(GTK_SCROLLED_WINDOW(shell->tree->scroll)->scrollbar))
+#endif
static void
destroy_widget(GtkWidget *widget, gpointer user_data)