Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/pidgin-opensteamworks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreionrobb <eionrobb@8ca6c67d-4297-256d-f884-781da6d5760b>2013-12-13 08:35:14 +0400
committereionrobb <eionrobb@8ca6c67d-4297-256d-f884-781da6d5760b>2013-12-13 08:35:14 +0400
commita94799d577db4df64c1f97d49233ec0b642df0a3 (patch)
treef93df44a3a3a2f3ff33cd559e946638625e23fb2
parent76335118230704dc594bea4bdb2df6d564781ba3 (diff)
Fix compiler warnings
-rw-r--r--steam-mobile/libsteam.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/steam-mobile/libsteam.c b/steam-mobile/libsteam.c
index a54591c..35691a1 100644
--- a/steam-mobile/libsteam.c
+++ b/steam-mobile/libsteam.c
@@ -684,7 +684,7 @@ static void
steam_get_nickname_list_cb(SteamAccount *sa, JsonObject *obj, gpointer user_data)
{
JsonObject *response = json_object_get_object_member(obj, "response");
- JsonArray *nicknames = json_object_get_array_member(obj, "nicknames");
+ JsonArray *nicknames = json_object_get_array_member(response, "nicknames");
guint index;
for(index = 0; index < json_array_get_length(nicknames); index++)
@@ -778,10 +778,14 @@ static gchar *steam_status_text(PurpleBuddy *buddy)
SteamBuddy *sbuddy = buddy->proto_data;
if (sbuddy && sbuddy->gameextrainfo)
+ {
if (sbuddy->gameid)
+ {
return g_markup_printf_escaped("In game %s", sbuddy->gameextrainfo);
- else
+ } else {
return g_markup_printf_escaped("In non-Steam game %s", sbuddy->gameextrainfo);
+ }
+ }
return NULL;
}
@@ -796,10 +800,14 @@ steam_tooltip_text(PurpleBuddy *buddy, PurpleNotifyUserInfo *user_info, gboolean
purple_notify_user_info_add_pair_html(user_info, "Name", sbuddy->personaname);
purple_notify_user_info_add_pair_html(user_info, "Real Name", sbuddy->realname);
if (sbuddy->gameextrainfo)
+ {
if (sbuddy->gameid)
+ {
purple_notify_user_info_add_pair_html(user_info, "In game %s", sbuddy->gameextrainfo);
- else
+ } else {
purple_notify_user_info_add_pair_html(user_info, "In non-Steam game %s", sbuddy->gameextrainfo);
+ }
+ }
}
}