aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-04 16:56:28 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-05 17:08:23 +0800
commit2b7aea94f1db089bb9f3fee62fd924f7a2c27c63 (patch)
treed28cf69cbce812f11d322d5434b6a6f57756eb02
parent6f618087dea59d0a7c0d4ff0c63cd0dc38f76ac2 (diff)
downloadgsoc2013-empathy-2b7aea94f1db089bb9f3fee62fd924f7a2c27c63.tar
gsoc2013-empathy-2b7aea94f1db089bb9f3fee62fd924f7a2c27c63.tar.gz
gsoc2013-empathy-2b7aea94f1db089bb9f3fee62fd924f7a2c27c63.tar.bz2
gsoc2013-empathy-2b7aea94f1db089bb9f3fee62fd924f7a2c27c63.tar.lz
gsoc2013-empathy-2b7aea94f1db089bb9f3fee62fd924f7a2c27c63.tar.xz
gsoc2013-empathy-2b7aea94f1db089bb9f3fee62fd924f7a2c27c63.tar.zst
gsoc2013-empathy-2b7aea94f1db089bb9f3fee62fd924f7a2c27c63.zip
add tooltips giving a bit more context about the candidate
-rw-r--r--src/empathy-call-window.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 1d2b0f509..61be794a2 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -1478,6 +1478,27 @@ candidate_type_to_str (FsCandidate *candidate)
return NULL;
}
+static const gchar *
+candidate_type_to_desc (FsCandidate *candidate)
+{
+ switch (candidate->type)
+ {
+ case FS_CANDIDATE_TYPE_HOST:
+ return _("The IP address as seen by the machine");
+ case FS_CANDIDATE_TYPE_SRFLX:
+ return _("The IP address as seen by a server on the Internet");
+ case FS_CANDIDATE_TYPE_PRFLX:
+ return _("The IP address of the peer as seen by the other side");
+ case FS_CANDIDATE_TYPE_RELAY:
+ return _("The IP address of a relay server");
+ case FS_CANDIDATE_TYPE_MULTICAST:
+ return _("The IP address of the multicast group");
+ }
+
+ return NULL;
+}
+
+
static void
update_candidate (EmpathyCallWindow *self,
gboolean video,
@@ -1528,6 +1549,8 @@ update_candidate (EmpathyCallWindow *self,
candidate->port, candidate_type_to_str (candidate));
gtk_label_set_text (GTK_LABEL (widget), str);
+ gtk_widget_set_tooltip_text (widget, candidate_type_to_desc (candidate));
+
g_free (str);
}