aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-06-22 23:05:40 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-06-23 15:56:16 +0800
commit2b92c53540d0a3f7570f06850ad01e611c1704b6 (patch)
tree2467576840060fd92acb908217f52fc4ae3e07ab /libempathy-gtk
parenta2060ed1cebe60f382383178c7fd10c9ad8ffba4 (diff)
downloadgsoc2013-empathy-2b92c53540d0a3f7570f06850ad01e611c1704b6.tar
gsoc2013-empathy-2b92c53540d0a3f7570f06850ad01e611c1704b6.tar.gz
gsoc2013-empathy-2b92c53540d0a3f7570f06850ad01e611c1704b6.tar.bz2
gsoc2013-empathy-2b92c53540d0a3f7570f06850ad01e611c1704b6.tar.lz
gsoc2013-empathy-2b92c53540d0a3f7570f06850ad01e611c1704b6.tar.xz
gsoc2013-empathy-2b92c53540d0a3f7570f06850ad01e611c1704b6.tar.zst
gsoc2013-empathy-2b92c53540d0a3f7570f06850ad01e611c1704b6.zip
LogWindow: display the user id in a tooltip in the Who pane
https://bugzilla.gnome.org/show_bug.cgi?id=573652
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-log-window.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index eaeab9d12..a75e25491 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -154,6 +154,7 @@ enum
COL_WHO_TYPE,
COL_WHO_ICON,
COL_WHO_NAME,
+ COL_WHO_ID,
COL_WHO_ACCOUNT,
COL_WHO_TARGET,
COL_WHO_COUNT
@@ -1339,6 +1340,7 @@ populate_entities_from_search_hits (void)
COL_WHO_ICON, room ? EMPATHY_IMAGE_GROUP_MESSAGE
: EMPATHY_IMAGE_AVATAR_DEFAULT,
COL_WHO_NAME, tpl_entity_get_alias (hit->target),
+ COL_WHO_ID, tpl_entity_get_identifier (hit->target),
COL_WHO_ACCOUNT, hit->account,
COL_WHO_TARGET, hit->target,
-1);
@@ -1669,6 +1671,7 @@ log_manager_got_entities_cb (GObject *manager,
COL_WHO_ICON, room ? EMPATHY_IMAGE_GROUP_MESSAGE
: EMPATHY_IMAGE_AVATAR_DEFAULT,
COL_WHO_NAME, tpl_entity_get_alias (entity),
+ COL_WHO_ID, tpl_entity_get_identifier (entity),
COL_WHO_ACCOUNT, ctx->account,
COL_WHO_TARGET, entity,
-1);
@@ -1968,6 +1971,7 @@ log_window_who_setup (EmpathyLogWindow *window)
G_TYPE_INT, /* type */
G_TYPE_STRING, /* icon */
G_TYPE_STRING, /* name */
+ G_TYPE_STRING, /* id */
TP_TYPE_ACCOUNT, /* account */
TPL_TYPE_ENTITY); /* target */
@@ -2008,6 +2012,7 @@ log_window_who_setup (EmpathyLogWindow *window)
NULL, NULL);
gtk_tree_view_set_search_column (view, COL_WHO_NAME);
+ gtk_tree_view_set_tooltip_column (view, COL_WHO_ID);
/* set up signals */
g_signal_connect (selection, "changed",