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-07-03 09:42:21 +0400
committereionrobb <eionrobb@8ca6c67d-4297-256d-f884-781da6d5760b>2013-07-03 09:42:21 +0400
commit63dc59f8520ddd9db78e717eb825afc32397d05f (patch)
tree5acfc983bdfeee078b5e3df243352d066a68668a
parentbe40c21cc65edeb8652cba4b456d5bcf918f5034 (diff)
When getting 0 results for a friend search, display a popup message
-rw-r--r--steam-mobile/libsteam.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/steam-mobile/libsteam.c b/steam-mobile/libsteam.c
index f50d888..2bbda13 100644
--- a/steam-mobile/libsteam.c
+++ b/steam-mobile/libsteam.c
@@ -312,6 +312,9 @@ steam_search_users_text_cb(SteamAccount *sa, JsonObject *obj, gpointer user_data
if (json_object_get_int_member(obj, "count") == 0 ||
!json_object_has_member(obj, "results"))
{
+ gchar *primary_text = g_strdup_printf("Your search for the user \"%s\" returned no results", search_term);
+ purple_notify_warning(sa->pc, "No users found", primary_text, "");
+ g_free(primary_text);
g_free(search_term);
return;
}