aboutsummaryrefslogtreecommitdiff
path: root/src/player-item.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/player-item.c')
-rw-r--r--src/player-item.c27
1 files changed, 21 insertions, 6 deletions
diff --git a/src/player-item.c b/src/player-item.c
index 301fb33..74d3e2f 100644
--- a/src/player-item.c
+++ b/src/player-item.c
@@ -1,4 +1,4 @@
-/* player-item.c generated by valac, the Vala compiler
+/* player-item.c generated by valac 0.9.5, the Vala compiler
* generated from player-item.vala, do not modify */
/*
@@ -165,6 +165,18 @@ static gboolean string_contains (const char* self, const char* needle) {
}
+static char* bool_to_string (gboolean self) {
+ char* result = NULL;
+ if (self) {
+ result = g_strdup ("true");
+ return result;
+ } else {
+ result = g_strdup ("false");
+ return result;
+ }
+}
+
+
void player_item_update (PlayerItem* self, GHashTable* data, GeeHashSet* attributes) {
GError * _inner_error_;
g_return_if_fail (self != NULL);
@@ -212,7 +224,7 @@ void player_item_update (PlayerItem* self, GHashTable* data, GeeHashSet* attribu
_tmp6_ = (_tmp5_ = g_filename_from_uri (_tmp4_ = string_strip (update), NULL, &_inner_error_), _g_free0 (_tmp4_), _tmp5_);
if (_inner_error_ != NULL) {
if (_inner_error_->domain == G_CONVERT_ERROR) {
- goto __catch2_g_convert_error;
+ goto __catch8_g_convert_error;
}
_g_free0 (update);
_g_free0 (v);
@@ -226,8 +238,8 @@ void player_item_update (PlayerItem* self, GHashTable* data, GeeHashSet* attribu
}
update = (_tmp7_ = _tmp6_, _g_free0 (update), _tmp7_);
}
- goto __finally2;
- __catch2_g_convert_error:
+ goto __finally8;
+ __catch8_g_convert_error:
{
GError * e;
e = _inner_error_;
@@ -237,7 +249,7 @@ void player_item_update (PlayerItem* self, GHashTable* data, GeeHashSet* attribu
_g_error_free0 (e);
}
}
- __finally2:
+ __finally8:
if (_inner_error_ != NULL) {
_g_free0 (update);
_g_free0 (v);
@@ -262,6 +274,9 @@ void player_item_update (PlayerItem* self, GHashTable* data, GeeHashSet* attribu
dbusmenu_menuitem_property_set_int ((DbusmenuMenuitem*) self, property, (gint) g_value_get_uint (v));
} else {
if (G_VALUE_HOLDS (v, G_TYPE_BOOLEAN)) {
+ char* _tmp8_;
+ g_debug ("player-item.vala:82: with value : %s", _tmp8_ = bool_to_string (g_value_get_boolean (v)));
+ _g_free0 (_tmp8_);
dbusmenu_menuitem_property_set_bool ((DbusmenuMenuitem*) self, property, g_value_get_boolean (v));
}
}
@@ -295,7 +310,7 @@ gboolean player_item_populated (PlayerItem* self, GeeHashSet* attrs) {
}
prop = (char*) gee_iterator_get (_prop_it);
value_int = dbusmenu_menuitem_property_get_int ((DbusmenuMenuitem*) self, prop);
- g_debug ("player-item.vala:94: populate - prop %s and value %i", prop, value_int);
+ g_debug ("player-item.vala:96: populate - prop %s and value %i", prop, value_int);
if (dbusmenu_menuitem_property_get_int ((DbusmenuMenuitem*) self, prop) != PLAYER_ITEM_EMPTY) {
result = TRUE;
_g_free0 (prop);