aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-06-27 14:56:08 +0100
committerConor Curran <conor.curran@canonical.com>2011-06-27 14:56:08 +0100
commit1fabb0b840c7c063ddc539b211468cce699ba403 (patch)
treec9ed63121ada39ab6af2b91a30fd0c17f7a950b9 /src
parent7cb291db26cc9eaac065e8583626eeff755d7c5a (diff)
parent4b03b559fa3b69930ae3d2dc769de1b9cc1a7c44 (diff)
downloadayatana-indicator-sound-1fabb0b840c7c063ddc539b211468cce699ba403.tar.gz
ayatana-indicator-sound-1fabb0b840c7c063ddc539b211468cce699ba403.tar.bz2
ayatana-indicator-sound-1fabb0b840c7c063ddc539b211468cce699ba403.zip
transport widget tweaks from mterry
Diffstat (limited to 'src')
-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;