aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2020-07-31 06:39:33 +0200
committerGitHub <noreply@github.com>2020-07-31 06:39:33 +0200
commitf062e19604a78481b88c2c2be3c93ac4cc4f4f93 (patch)
treea6cba2ddc4a57900e745ff39821684a35e0d858f /src
parentb18ced1427ccdbae1cd91fa65de7e48e1e501748 (diff)
parentb65bc5056d99e8759d4d232a2e26e1df82669ad0 (diff)
downloadayatana-ido-f062e19604a78481b88c2c2be3c93ac4cc4f4f93.tar.gz
ayatana-ido-f062e19604a78481b88c2c2be3c93ac4cc4f4f93.tar.bz2
ayatana-ido-f062e19604a78481b88c2c2be3c93ac4cc4f4f93.zip
Merge pull request #8 from tari01/master
Centre playback menu item spinner/Pad application menu item label
Diffstat (limited to 'src')
-rw-r--r--src/idoapplicationmenuitem.c1
-rw-r--r--src/idoplaybackmenuitem.c3
2 files changed, 2 insertions, 2 deletions
diff --git a/src/idoapplicationmenuitem.c b/src/idoapplicationmenuitem.c
index ba177bd..497a4e2 100644
--- a/src/idoapplicationmenuitem.c
+++ b/src/idoapplicationmenuitem.c
@@ -158,6 +158,7 @@ ido_application_menu_item_new_from_model (GMenuItem *menuitem,
gchar *action;
item = g_object_new (IDO_TYPE_APPLICATION_MENU_ITEM, NULL);
+ gtk_widget_set_margin_end(IDO_APPLICATION_MENU_ITEM(item)->label, 16);
if (g_menu_item_get_attribute (menuitem, "label", "s", &label))
{
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;
}