diff options
author | Sebastien Bacher <seb128@ubuntu.com> | 2010-07-22 21:04:26 +0200 |
---|---|---|
committer | Sebastien Bacher <seb128@ubuntu.com> | 2010-07-22 21:04:26 +0200 |
commit | 1777ee4291dc792ca3d4df087c8af23cd8458961 (patch) | |
tree | 101cc9ea1b424973a7c43cd7ce7bb9c4f9ac66aa /src/metadata-menu-item.c | |
parent | f6ffb190261dfdbbf55e90b63c1cd06f03037e35 (diff) | |
parent | c7316aef6047ef29ab71fbcd34d6932fb0e521ad (diff) | |
download | ayatana-indicator-sound-1777ee4291dc792ca3d4df087c8af23cd8458961.tar.gz ayatana-indicator-sound-1777ee4291dc792ca3d4df087c8af23cd8458961.tar.bz2 ayatana-indicator-sound-1777ee4291dc792ca3d4df087c8af23cd8458961.zip |
Import upstream version 0.3.8
Diffstat (limited to 'src/metadata-menu-item.c')
-rw-r--r-- | src/metadata-menu-item.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/metadata-menu-item.c b/src/metadata-menu-item.c index 518bad8..792b638 100644 --- a/src/metadata-menu-item.c +++ b/src/metadata-menu-item.c @@ -84,7 +84,7 @@ enum { MetadataMenuitem* metadata_menuitem_new (void); MetadataMenuitem* metadata_menuitem_construct (GType object_type); GeeHashSet* metadata_menuitem_attributes_format (void); -gboolean metadata_menuitem_populated (MetadataMenuitem* self); +gboolean metadata_menuitem_not_populated (MetadataMenuitem* self); static int _vala_strcmp0 (const char * str1, const char * str2); @@ -105,21 +105,21 @@ GeeHashSet* metadata_menuitem_attributes_format (void) { GeeHashSet* result = NULL; GeeHashSet* attrs; attrs = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL); - gee_abstract_collection_add ((GeeAbstractCollection*) attrs, DBUSMENU_METADATA_MENUITEM_TEXT_TITLE); - gee_abstract_collection_add ((GeeAbstractCollection*) attrs, DBUSMENU_METADATA_MENUITEM_TEXT_ARTIST); - gee_abstract_collection_add ((GeeAbstractCollection*) attrs, DBUSMENU_METADATA_MENUITEM_TEXT_ALBUM); + gee_abstract_collection_add ((GeeAbstractCollection*) attrs, DBUSMENU_METADATA_MENUITEM_TITLE); + gee_abstract_collection_add ((GeeAbstractCollection*) attrs, DBUSMENU_METADATA_MENUITEM_ARTIST); + gee_abstract_collection_add ((GeeAbstractCollection*) attrs, DBUSMENU_METADATA_MENUITEM_ALBUM); gee_abstract_collection_add ((GeeAbstractCollection*) attrs, DBUSMENU_METADATA_MENUITEM_ARTURL); result = attrs; return result; } -gboolean metadata_menuitem_populated (MetadataMenuitem* self) { +gboolean metadata_menuitem_not_populated (MetadataMenuitem* self) { gboolean result = FALSE; gboolean _tmp0_ = FALSE; g_return_val_if_fail (self != NULL, FALSE); - if (dbusmenu_menuitem_property_get ((DbusmenuMenuitem*) self, DBUSMENU_METADATA_MENUITEM_TEXT_TITLE) != NULL) { - _tmp0_ = _vala_strcmp0 (dbusmenu_menuitem_property_get ((DbusmenuMenuitem*) self, DBUSMENU_METADATA_MENUITEM_TEXT_TITLE), "") != 0; + if (dbusmenu_menuitem_property_get ((DbusmenuMenuitem*) self, DBUSMENU_METADATA_MENUITEM_TITLE) == NULL) { + _tmp0_ = _vala_strcmp0 (dbusmenu_menuitem_property_get ((DbusmenuMenuitem*) self, DBUSMENU_METADATA_MENUITEM_TITLE), "") == 0; } else { _tmp0_ = FALSE; } |