diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-10-21 19:10:38 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-10-21 19:10:38 +0100 |
commit | 2308be7ebf91ccfc3e7a231e38d0970a9dc03034 (patch) | |
tree | a9ca1c75ccd828530ced0b18fb7c0217239cecd9 | |
parent | cb00bc0353c23c813520bfa0f3fd45d85e81d4df (diff) | |
download | ayatana-indicator-sound-2308be7ebf91ccfc3e7a231e38d0970a9dc03034.tar.gz ayatana-indicator-sound-2308be7ebf91ccfc3e7a231e38d0970a9dc03034.tar.bz2 ayatana-indicator-sound-2308be7ebf91ccfc3e7a231e38d0970a9dc03034.zip |
fixed offset so as the player icon and triangle stay stationary when the player is active fixes lp:#874454
-rw-r--r-- | src/metadata-widget.c | 5 |
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"); |