aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-10-26 17:04:00 -0400
committerConor Curran <conor.curran@canonical.com>2011-10-26 17:04:00 -0400
commit10f7c505fc666ec0e95a3d0e0ac0def59a3f6dd9 (patch)
tree8383133a5c24d9a9c15a5687234ce8804b9ddfb7 /src
parent0c3cc3e840b87733e73119fd8887c30466126151 (diff)
parent2308be7ebf91ccfc3e7a231e38d0970a9dc03034 (diff)
downloadayatana-indicator-sound-10f7c505fc666ec0e95a3d0e0ac0def59a3f6dd9.tar.gz
ayatana-indicator-sound-10f7c505fc666ec0e95a3d0e0ac0def59a3f6dd9.tar.bz2
ayatana-indicator-sound-10f7c505fc666ec0e95a3d0e0ac0def59a3f6dd9.zip
fix alignment of app icon when metadata is expanded
Diffstat (limited to 'src')
-rw-r--r--src/metadata-widget.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/metadata-widget.c b/src/metadata-widget.c
index 8ab7d1d..96d55ab 100644
--- a/src/metadata-widget.c
+++ b/src/metadata-widget.c
@@ -331,7 +331,7 @@ metadata_widget_icon_triangle_draw_cb_gtk_3 (GtkWidget *widget,
x = allocation.x;
y = 0;
- gint offset = (allocation.height - gdk_pixbuf_get_height (priv->icon_buf)) / 2;
+ gint offset = gdk_pixbuf_get_height (priv->icon_buf) / 3;
// Draw player icon
if (priv->icon_buf != NULL){
@@ -345,7 +345,8 @@ metadata_widget_icon_triangle_draw_cb_gtk_3 (GtkWidget *widget,
// Draw triangle but only if the player is running.
if (dbusmenu_menuitem_property_get_bool (priv->twin_item,
DBUSMENU_METADATA_MENUITEM_PLAYER_RUNNING)){
- y += allocation.height/2.0 - (double)arrow_height/2.0;
+ y += gdk_pixbuf_get_height (priv->icon_buf) / 3 + 3;
+ //allocation.height/2.0 - (double)arrow_height/2.0;
cairo_set_line_width (cr, 1.0);
//g_debug ("triangle drawing");