aboutsummaryrefslogtreecommitdiff
path: root/src/music-player-bridge.c
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2011-01-27 15:57:39 -0500
committerKen VanDine <ken.vandine@canonical.com>2011-01-27 15:57:39 -0500
commit759793a2dda77abd227921e119bb329271c36a55 (patch)
tree248c4ba64e9464f58a64c22c69f24a294ff16a84 /src/music-player-bridge.c
parent500000a82b6785e2bf7732ee87f36c6a44d2767c (diff)
parent6b2132fb4e700fe84a26adeac5126e8afbc507b3 (diff)
downloadayatana-indicator-sound-759793a2dda77abd227921e119bb329271c36a55.tar.gz
ayatana-indicator-sound-759793a2dda77abd227921e119bb329271c36a55.tar.bz2
ayatana-indicator-sound-759793a2dda77abd227921e119bb329271c36a55.zip
Import upstream version 0.5.7
Diffstat (limited to 'src/music-player-bridge.c')
-rw-r--r--src/music-player-bridge.c45
1 files changed, 20 insertions, 25 deletions
diff --git a/src/music-player-bridge.c b/src/music-player-bridge.c
index 04c2a3e..16f3dfa 100644
--- a/src/music-player-bridge.c
+++ b/src/music-player-bridge.c
@@ -1,4 +1,4 @@
-/* music-player-bridge.c generated by valac 0.11.3, the Vala compiler
+/* music-player-bridge.c generated by valac 0.11.5, the Vala compiler
* generated from music-player-bridge.vala, do not modify */
/*
@@ -634,50 +634,45 @@ static gchar* music_player_bridge_determine_key (gchar* desktop_or_interface) {
gchar* _result_;
gchar** _tmp1_;
gchar** _tmp2_ = NULL;
+ gchar** tokens;
gint tokens_length1;
gint _tokens_size_;
- gchar** _tmp3_;
- gchar** tokens;
- gchar** _tmp6_;
- gchar** _tmp7_ = NULL;
+ gchar** _tmp5_;
+ gchar** _tmp6_ = NULL;
+ gchar** temp;
gint temp_length1;
gint _temp_size_;
- gchar** _tmp8_;
- gchar** temp;
g_return_val_if_fail (desktop_or_interface != NULL, NULL);
_tmp0_ = g_strdup (desktop_or_interface);
_result_ = _tmp0_;
_tmp2_ = _tmp1_ = g_strsplit (desktop_or_interface, ".", 0);
- _tmp3_ = _tmp2_;
+ tokens = _tmp2_;
tokens_length1 = _vala_array_length (_tmp1_);
- _tokens_size_ = tokens_length1;
- tokens = _tmp3_;
+ _tokens_size_ = _vala_array_length (_tmp1_);
if (tokens_length1 > 1) {
+ gchar* _tmp3_;
gchar* _tmp4_;
- gchar* _tmp5_;
- _tmp4_ = g_strdup (tokens[tokens_length1 - 1]);
- _tmp5_ = _tmp4_;
+ _tmp3_ = g_strdup (tokens[tokens_length1 - 1]);
+ _tmp4_ = _tmp3_;
_g_free0 (_result_);
- _result_ = _tmp5_;
+ _result_ = _tmp4_;
}
- _tmp7_ = _tmp6_ = g_strsplit (_result_, "-", 0);
- _tmp8_ = _tmp7_;
- temp_length1 = _vala_array_length (_tmp6_);
- _temp_size_ = temp_length1;
- temp = _tmp8_;
+ _tmp6_ = _tmp5_ = g_strsplit (_result_, "-", 0);
+ temp = _tmp6_;
+ temp_length1 = _vala_array_length (_tmp5_);
+ _temp_size_ = _vala_array_length (_tmp5_);
if (temp_length1 > 1) {
- gchar* _tmp9_;
- gchar* _tmp10_;
- _tmp9_ = g_strdup (temp[0]);
- _tmp10_ = _tmp9_;
+ gchar* _tmp7_;
+ gchar* _tmp8_;
+ _tmp7_ = g_strdup (temp[0]);
+ _tmp8_ = _tmp7_;
_g_free0 (_result_);
- _result_ = _tmp10_;
+ _result_ = _tmp8_;
}
g_debug ("music-player-bridge.vala:205: determine key result = %s", _result_);
result = _result_;
temp = (_vala_array_free (temp, temp_length1, (GDestroyNotify) g_free), NULL);
tokens = (_vala_array_free (tokens, tokens_length1, (GDestroyNotify) g_free), NULL);
- _g_free0 (desktop_or_interface);
return result;
}