Merge lp:~mterry/indicator-sound/gtk3-draw-transport into lp:indicator-sound/fourth

Proposed by Michael Terry
Status: Merged
Merged at revision: 248
Proposed branch: lp:~mterry/indicator-sound/gtk3-draw-transport
Merge into: lp:indicator-sound/fourth
Diff against target: 17 lines (+2/-0)
1 file modified
src/transport-widget.c (+2/-0)
To merge this branch: bzr merge lp:~mterry/indicator-sound/gtk3-draw-transport
Reviewer Review Type Date Requested Status
Conor Curran (community) Approve
Review via email: mp+65988@code.launchpad.net

Description of the change

This bit of code worked in gtk2 but messes up gtk3, so don't use it in gtk3.

To post a comment you must log in.
Revision history for this message
Conor Curran (cjcurran) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/transport-widget.c'
2--- src/transport-widget.c 2011-06-22 19:19:49 +0000
3+++ src/transport-widget.c 2011-06-27 13:50:40 +0000
4@@ -1232,12 +1232,14 @@
5 cairo_surface_t* surf = NULL;
6 cairo_t* cr_surf = NULL;
7
8+#if ! GTK_CHECK_VERSION(3, 0, 0)
9 GtkAllocation allocation;
10 gtk_widget_get_allocation (button, &allocation);
11 cairo_translate (cr, allocation.x, allocation.y);
12
13 //g_debug("button x allocation = %i", allocation.x);
14 //g_debug("button y allocation = %i", allocation.y);
15+#endif
16
17 GtkStyle *style;
18

Subscribers

People subscribed via source and target branches