aboutsummaryrefslogtreecommitdiff
path: root/src/idoplaybackmenuitem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/idoplaybackmenuitem.c')
-rw-r--r--src/idoplaybackmenuitem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/idoplaybackmenuitem.c b/src/idoplaybackmenuitem.c
index 66502ab..06ac8af 100644
--- a/src/idoplaybackmenuitem.c
+++ b/src/idoplaybackmenuitem.c
@@ -1673,8 +1673,7 @@ ido_playback_menu_item_draw (GtkWidget* button, cairo_t *cr)
}
else if (item->current_state == STATE_LAUNCHING)
{
- // the spinner is not aligned, why? because the play button has odd width/height numbers
- gtk_render_activity (gtk_widget_get_style_context (button), cr, 106, 6, 30, 30);
+ gtk_render_activity (gtk_widget_get_style_context (button), cr, (alloc.width / 2) - 15, (alloc.height / 2) - 15, 30, 30);
}
return FALSE;
}