aboutsummaryrefslogtreecommitdiff
path: root/src/metadata-widget.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-08-24 16:22:35 +0100
committerConor Curran <conor.curran@canonical.com>2010-08-24 16:22:35 +0100
commitfeed9f62a8779febde16e4f4461967a2b2a33e72 (patch)
tree16819d94976992c79ca5ff79225f545eebc0b126 /src/metadata-widget.c
parent92d628cf6bff2644d6ccafd9f5d8d31d7659a242 (diff)
downloadayatana-indicator-sound-feed9f62a8779febde16e4f4461967a2b2a33e72.tar.gz
ayatana-indicator-sound-feed9f62a8779febde16e4f4461967a2b2a33e72.tar.bz2
ayatana-indicator-sound-feed9f62a8779febde16e4f4461967a2b2a33e72.zip
mpris 2 metadata map changes implementated
Diffstat (limited to 'src/metadata-widget.c')
-rw-r--r--src/metadata-widget.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/metadata-widget.c b/src/metadata-widget.c
index eec98b0..aeef670 100644
--- a/src/metadata-widget.c
+++ b/src/metadata-widget.c
@@ -236,8 +236,8 @@ metadata_image_expose (GtkWidget *metadata, GdkEventExpose *event, gpointer user
pango_cairo_show_layout(cr, layout);
g_object_unref(layout);
- g_object_unref(p_context);
- g_string_free (string);
+ g_object_unref(pcontext);
+ g_string_free (string, TRUE);
cairo_destroy (cr);
return TRUE;
@@ -260,6 +260,9 @@ metadata_widget_button_press_event (GtkWidget *menuitem,
gtk_clipboard_set_text (board, contents, -1);
gtk_clipboard_store (board);
g_free(contents);
+ g_free(title);
+ g_free(artist);
+ g_free(album);
return FALSE;
}
@@ -295,7 +298,7 @@ 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);
- g_string_overwrite(priv->image_path, 0, g_value_dup_string(value));
+ g_string_overwrite(priv->image_path, 0, g_value_get_string (value));
metadata_widget_update_album_art(mitem);
}
}