summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/widget/gimpspinscale.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/widget/gimpspinscale.c b/src/ui/widget/gimpspinscale.c
index 1b7ac7bfe..df39b9644 100644
--- a/src/ui/widget/gimpspinscale.c
+++ b/src/ui/widget/gimpspinscale.c
@@ -432,7 +432,11 @@ static gboolean
gdk_cairo_region (cr, event->region);
cairo_clip (cr);
+#if GTK_CHECK_VERSION(2, 24,0)
w = gdk_window_get_width (event->window);
+#else
+ gdk_drawable_get_size (event->window, &w, NULL);
+#endif
#endif
@@ -682,7 +686,12 @@ gimp_spin_scale_change_value (GtkWidget *widget,
gint width;
gimp_spin_scale_get_limits (GIMP_SPIN_SCALE (widget), &lower, &upper);
+
+#if GTK_CHECK_VERSION(2, 24,0)
width = gdk_window_get_width (text_window);
+#else
+ gdk_drawable_get_size (text_window, &width, NULL);
+#endif
#endif