diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-09-01 17:51:30 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-09-01 17:51:30 +0100 |
commit | bb73e65c4fd9f698050ff1d2ddb71fc35bac6803 (patch) | |
tree | 91441c76f5795be8640d760068a015efb844cd29 /src/metadata-widget.c | |
parent | 9ab9b175e1f77457157211f5f93c54e8ae87e3dc (diff) | |
download | ayatana-indicator-sound-bb73e65c4fd9f698050ff1d2ddb71fc35bac6803.tar.gz ayatana-indicator-sound-bb73e65c4fd9f698050ff1d2ddb71fc35bac6803.tar.bz2 ayatana-indicator-sound-bb73e65c4fd9f698050ff1d2ddb71fc35bac6803.zip |
last fm art work should load correctly now
Diffstat (limited to 'src/metadata-widget.c')
-rw-r--r-- | src/metadata-widget.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/metadata-widget.c b/src/metadata-widget.c index 72acc8c..cfff098 100644 --- a/src/metadata-widget.c +++ b/src/metadata-widget.c @@ -105,7 +105,7 @@ metadata_widget_init (MetadataWidget *self) priv->album_art = gtk_image_new(); priv->image_path = g_string_new(dbusmenu_menuitem_property_get(twin_item, DBUSMENU_METADATA_MENUITEM_ARTURL)); priv->old_image_path = g_string_new(""); - priv->remote_image_path = g_string_new(DBUSMENU_PLAYERITEM_REMOTE_FILEPATH); + priv->remote_image_path = g_string_new(DBUSMENU_PLAYER_ITEM_REMOTE_FILEPATH); g_debug("Metadata::At startup and image path = %s", priv->image_path->str); g_signal_connect(priv->album_art, "expose-event", @@ -178,10 +178,6 @@ metadata_widget_finalize (GObject *object) G_OBJECT_CLASS (metadata_widget_parent_class)->finalize (object); } -static void metadata_load_new_image(MetadataWidget* self) -{ -} - /** * We override the expose method to enable primitive drawing of the * empty album art image (and soon rounded rectangles on the album art) @@ -322,10 +318,12 @@ metadata_widget_property_update(DbusmenuMenuitem* item, gchar* property, } else if(g_ascii_strcasecmp(DBUSMENU_METADATA_MENUITEM_ARTURL, property) == 0){ g_string_erase(priv->image_path, 0, -1); - //gchar* empty = ""; - g_string_erase(priv->old_image_path, 0, -1); g_string_overwrite(priv->image_path, 0, g_value_get_string (value)); - //g_free(empty); + // Basically force expose the reload the image because we have an image update + // but we are using remote images i.e. the same file + if(g_string_equal(priv->image_path, priv->remote_image_path) == TRUE){ + g_string_erase(priv->old_image_path, 0, -1); + } } } |