aboutsummaryrefslogtreecommitdiff
path: root/src/transport-widget.c
diff options
context:
space:
mode:
authorMichael Terry <michael.terry@canonical.com>2011-06-27 07:57:31 -0400
committerMichael Terry <michael.terry@canonical.com>2011-06-27 07:57:31 -0400
commit4b03b559fa3b69930ae3d2dc769de1b9cc1a7c44 (patch)
treefcaf0718a1b79e4d1e3e105771992f106d312943 /src/transport-widget.c
parent41416ba7f8944ac60a6c1d84409d05a2d9e4d787 (diff)
downloadayatana-indicator-sound-4b03b559fa3b69930ae3d2dc769de1b9cc1a7c44.tar.gz
ayatana-indicator-sound-4b03b559fa3b69930ae3d2dc769de1b9cc1a7c44.tar.bz2
ayatana-indicator-sound-4b03b559fa3b69930ae3d2dc769de1b9cc1a7c44.zip
fix gtk3 not drawing transport widget at all
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;