diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-12-16 15:07:09 +0000 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-12-16 15:07:09 +0000 |
commit | 3f7014afbcae2bb141b358ebf0b3cf036b08aa56 (patch) | |
tree | 4eef0601a9c7cb473481d162d8d29aba561ff895 /src/metadata-widget.c | |
parent | f800967fcabf6a9d7e6223ff8d6591f042496588 (diff) | |
parent | 4c9ef773092664590d8e6e4fd46d31a35122ab6a (diff) | |
download | ayatana-indicator-sound-3f7014afbcae2bb141b358ebf0b3cf036b08aa56.tar.gz ayatana-indicator-sound-3f7014afbcae2bb141b358ebf0b3cf036b08aa56.tar.bz2 ayatana-indicator-sound-3f7014afbcae2bb141b358ebf0b3cf036b08aa56.zip |
registration process in place
Diffstat (limited to 'src/metadata-widget.c')
-rw-r--r-- | src/metadata-widget.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/metadata-widget.c b/src/metadata-widget.c index 1e2c891..191e134 100644 --- a/src/metadata-widget.c +++ b/src/metadata-widget.c @@ -194,21 +194,23 @@ metadata_image_expose (GtkWidget *metadata, GdkEventExpose *event, gpointer user if(g_string_equal(priv->image_path, priv->old_image_path) == FALSE || priv->theme_change_occured == TRUE){ priv->theme_change_occured = FALSE; - GdkPixbuf* pixbuf; - pixbuf = gdk_pixbuf_new_from_file(priv->image_path->str, NULL); + GdkPixbuf* orig_pixbuf; + orig_pixbuf = gdk_pixbuf_new_from_file(priv->image_path->str, NULL); //g_debug("metadata_load_new_image -> pixbuf from %s", // priv->image_path->str); - if(GDK_IS_PIXBUF(pixbuf) == FALSE){ + if(GDK_IS_PIXBUF(orig_pixbuf) == FALSE){ //g_debug("problem loading the downloaded image just use the placeholder instead"); draw_album_art_placeholder(metadata); return TRUE; } - pixbuf = gdk_pixbuf_scale_simple(pixbuf,60, 60, GDK_INTERP_BILINEAR); + GdkPixbuf* pixbuf; + pixbuf = gdk_pixbuf_scale_simple(orig_pixbuf,60, 60, GDK_INTERP_BILINEAR); gtk_image_set_from_pixbuf(GTK_IMAGE(priv->album_art), pixbuf); g_string_erase(priv->old_image_path, 0, -1); g_string_overwrite(priv->old_image_path, 0, priv->image_path->str); g_object_unref(pixbuf); + g_object_unref(orig_pixbuf); } return FALSE; } |