aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-09-06 18:07:15 +0100
committerConor Curran <conor.curran@canonical.com>2010-09-06 18:07:15 +0100
commit2cd77a2b3065b638bc9f02239700a989e02a1142 (patch)
tree44b66f4da4a330a18ad7176433944382c9d425aa /src
parent0a4c3a239cf405642ad829b6841925140792d33f (diff)
downloadayatana-indicator-sound-2cd77a2b3065b638bc9f02239700a989e02a1142.tar.gz
ayatana-indicator-sound-2cd77a2b3065b638bc9f02239700a989e02a1142.tar.bz2
ayatana-indicator-sound-2cd77a2b3065b638bc9f02239700a989e02a1142.zip
album art rounded fixed
Diffstat (limited to 'src')
-rw-r--r--src/indicator-sound.c2
-rw-r--r--src/metadata-widget.c10
2 files changed, 5 insertions, 7 deletions
diff --git a/src/indicator-sound.c b/src/indicator-sound.c
index a454600..b59eb98 100644
--- a/src/indicator-sound.c
+++ b/src/indicator-sound.c
@@ -495,7 +495,6 @@ start_animation()
{
blocked_iter = blocked_animation_list;
blocked_id = 0;
- //g_debug("exit from blocked hold start the animation\n");
animation_id = g_timeout_add(50, fade_back_to_mute_image, NULL);
return FALSE;
}
@@ -504,7 +503,6 @@ static gboolean
fade_back_to_mute_image()
{
if (blocked_iter != NULL) {
- g_debug("in animation 'loop'\n");
gtk_image_set_from_pixbuf(speaker_image, blocked_iter->data);
blocked_iter = blocked_iter->next;
return TRUE;
diff --git a/src/metadata-widget.c b/src/metadata-widget.c
index f600238..740ad6d 100644
--- a/src/metadata-widget.c
+++ b/src/metadata-widget.c
@@ -160,7 +160,7 @@ metadata_widget_init (MetadataWidget *self)
g_signal_connect(self, "style-set", G_CALLBACK(metadata_widget_set_style), GTK_WIDGET(self));
- gtk_widget_set_size_request(GTK_WIDGET(self), 200, 60);
+ gtk_widget_set_size_request(GTK_WIDGET(self), 200, 65);
gtk_container_add (GTK_CONTAINER (self), hbox);
}
@@ -348,10 +348,9 @@ rounded_rectangle (cairo_t *cr,
{
gdouble radius;
gdouble degrees;
-
+
radius = corner_radius / aspect;
degrees = G_PI / 180.0;
-
cairo_new_sub_path (cr);
cairo_arc (cr,
x + width - radius,
@@ -377,6 +376,7 @@ rounded_rectangle (cairo_t *cr,
radius,
180 * degrees,
270 * degrees);
+
cairo_close_path (cr);
}
@@ -401,12 +401,12 @@ image_set_from_pixbuf (GtkWidget *widget,
MetadataWidgetPrivate* priv = METADATA_WIDGET_GET_PRIVATE(metadata);
GtkImage* image = GTK_IMAGE(priv->album_art);
- frame_width = 5;
+ frame_width = 3;
w = gdk_pixbuf_get_width (source) + frame_width * 2;
h = gdk_pixbuf_get_height (source) + frame_width * 2;
- radius = w / 10;
+ radius = 10;
pixmap = gdk_pixmap_new (gtk_widget_get_window (widget), w, h, -1);
bitmask = gdk_pixmap_new (gtk_widget_get_window (widget), w, h, 1);