aboutsummaryrefslogtreecommitdiff
path: root/src/metadata-widget.c
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2010-07-29 11:26:41 -0400
committerKen VanDine <ken.vandine@canonical.com>2010-07-29 11:26:41 -0400
commit986fc648fc6544aaa3bb40a17e1345e0247a4b57 (patch)
treeda2904b0c642c44d65629a9657b550c2c26a7b08 /src/metadata-widget.c
parent1777ee4291dc792ca3d4df087c8af23cd8458961 (diff)
parent859c48c87009fb12e0acc15fdeb8d69e42247176 (diff)
downloadayatana-indicator-sound-986fc648fc6544aaa3bb40a17e1345e0247a4b57.tar.gz
ayatana-indicator-sound-986fc648fc6544aaa3bb40a17e1345e0247a4b57.tar.bz2
ayatana-indicator-sound-986fc648fc6544aaa3bb40a17e1345e0247a4b57.zip
Import upstream version 0.3.9
Diffstat (limited to 'src/metadata-widget.c')
-rw-r--r--src/metadata-widget.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/metadata-widget.c b/src/metadata-widget.c
index dce9226..670d983 100644
--- a/src/metadata-widget.c
+++ b/src/metadata-widget.c
@@ -199,6 +199,16 @@ metadata_widget_property_update(DbusmenuMenuitem* item, gchar* property,
{
g_return_if_fail (IS_METADATA_WIDGET (userdata));
+ if(g_value_get_int(value) == DBUSMENU_PROPERTY_EMPTY){
+ g_debug("Metadata widget: property update - reset");
+ gchar* empty = "";
+ GValue new_value = {0};
+ g_value_init(&new_value, G_TYPE_STRING);
+ g_value_set_string(&new_value, g_strdup(""));
+ //g_free(empty);
+ value = &new_value;
+ }
+
MetadataWidget* mitem = METADATA_WIDGET(userdata);
MetadataWidgetPrivate * priv = METADATA_WIDGET_GET_PRIVATE(mitem);