diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-06-21 12:25:46 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-06-21 12:25:46 +0100 |
commit | 87445b8921774ec705b4bb62429a5f69be941737 (patch) | |
tree | 74ef153839a96551294c421509ec1bd909e23d7c | |
parent | 2357b40b5530215fc018302eaa288241b436d025 (diff) | |
download | ayatana-indicator-sound-87445b8921774ec705b4bb62429a5f69be941737.tar.gz ayatana-indicator-sound-87445b8921774ec705b4bb62429a5f69be941737.tar.bz2 ayatana-indicator-sound-87445b8921774ec705b4bb62429a5f69be941737.zip |
more refactoring of vapis
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/metadata-menu-item.vala | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index a1a1deb..a2a54e8 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -69,7 +69,7 @@ music_bridge_VALAFLAGS = \ --pkg gee-1.0 \ --pkg Indicate-0.2 \ --pkg Dbusmenu-Glib-0.2 \ - --pkg music-bridge \ + --pkg common-defs \ --pkg dbus-glib-1 $(MAINTAINER_VALAFLAGS) diff --git a/src/metadata-menu-item.vala b/src/metadata-menu-item.vala index 02ae1c9..2b865f7 100644 --- a/src/metadata-menu-item.vala +++ b/src/metadata-menu-item.vala @@ -6,16 +6,16 @@ public class MetadataMenuitem : PlayerItem { public MetadataMenuitem() { - this.property_set(MENUITEM_PROP_TYPE, CommonDefs.DBUSMENU_METADATA_MENUITEM_TYPE); + this.property_set(MENUITEM_PROP_TYPE, DBUSMENU_METADATA_MENUITEM_TYPE); } public override void update(HashMap<string, string> data) { - this.property_set(CommonDefs.DBUSMENU_METADATA_MENUITEM_TEXT_ARTIST, data.get("artist").strip()); - this.property_set(CommonDefs.DBUSMENU_METADATA_MENUITEM_TEXT_TITLE, data.get("title").strip()); - this.property_set(CommonDefs.DBUSMENU_METADATA_MENUITEM_TEXT_ALBUM, data.get("album").strip()); - this.property_set(CommonDefs.DBUSMENU_METADATA_MENUITEM_IMAGE_PATH, sanitize_image_path(data.get("arturl"))); + this.property_set(DBUSMENU_METADATA_MENUITEM_TEXT_ARTIST, data.get("artist").strip()); + this.property_set(DBUSMENU_METADATA_MENUITEM_TEXT_TITLE, data.get("title").strip()); + this.property_set(DBUSMENU_METADATA_MENUITEM_TEXT_ALBUM, data.get("album").strip()); + this.property_set(DBUSMENU_METADATA_MENUITEM_IMAGE_PATH, sanitize_image_path(data.get("arturl"))); } public static string sanitize_image_path(string path) |