aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2011-10-14 12:27:12 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2011-10-14 12:28:58 +0800
commit7b6b8da406493311445f6c2470a005a542972693 (patch)
treeaf24567e32ff889b0fb382bec0397598b8f1872d /libempathy-gtk
parent1180b055b932a8f1a1a6b207093e81b412e62da2 (diff)
parent2f9a520747ceacc89e5d6d923ed0cda8da22b95c (diff)
downloadgsoc2013-empathy-7b6b8da406493311445f6c2470a005a542972693.tar
gsoc2013-empathy-7b6b8da406493311445f6c2470a005a542972693.tar.gz
gsoc2013-empathy-7b6b8da406493311445f6c2470a005a542972693.tar.bz2
gsoc2013-empathy-7b6b8da406493311445f6c2470a005a542972693.tar.lz
gsoc2013-empathy-7b6b8da406493311445f6c2470a005a542972693.tar.xz
gsoc2013-empathy-7b6b8da406493311445f6c2470a005a542972693.tar.zst
gsoc2013-empathy-7b6b8da406493311445f6c2470a005a542972693.zip
Merge remote-tracking branch 'pochu/misc-fixes'
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-call-utils.c2
-rw-r--r--libempathy-gtk/empathy-ui-utils.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-call-utils.c b/libempathy-gtk/empathy-call-utils.c
index 399647a62..adf4987ba 100644
--- a/libempathy-gtk/empathy-call-utils.c
+++ b/libempathy-gtk/empathy-call-utils.c
@@ -55,6 +55,8 @@ get_error_display_message (GError *error)
return _("The specified contact is not valid");
case TP_ERROR_EMERGENCY_CALLS_NOT_SUPPORTED:
return _("Emergency calls are not supported on this protocol");
+ case TP_ERROR_INSUFFICIENT_BALANCE:
+ return _("You don't have enough credit in order to place this call");
}
return _("There was an error starting the call");
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index 3fde9e3e1..32ad451a1 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -947,6 +947,9 @@ empathy_filename_from_icon_name (const gchar *icon_name,
}
icon_info = gtk_icon_theme_lookup_icon (icon_theme, icon_name, size, 0);
+ if (icon_info == NULL)
+ return NULL;
+
ret = g_strdup (gtk_icon_info_get_filename (icon_info));
gtk_icon_info_free (icon_info);