aboutsummaryrefslogtreecommitdiff
path: root/src/transport-widget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport-widget.c')
-rw-r--r--src/transport-widget.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/transport-widget.c b/src/transport-widget.c
index f9b5319..79eef63 100644
--- a/src/transport-widget.c
+++ b/src/transport-widget.c
@@ -1232,12 +1232,14 @@ draw (GtkWidget* button, cairo_t *cr)
cairo_surface_t* surf = NULL;
cairo_t* cr_surf = NULL;
+#if ! GTK_CHECK_VERSION(3, 0, 0)
GtkAllocation allocation;
gtk_widget_get_allocation (button, &allocation);
cairo_translate (cr, allocation.x, allocation.y);
//g_debug("button x allocation = %i", allocation.x);
//g_debug("button y allocation = %i", allocation.y);
+#endif
GtkStyle *style;