diff src/protocols/msn/msn.c @ 4724:b9e7ccf21f9c

[gaim-migrate @ 5037] I stayed up all night and readded tooltips. It feels great. GTK 2 provides no easy way to add a tooltip to a row of a GtkTreeView so I had to do it all by hand. In doing so, I took some liberties and did some stuff most tooltips can't do... my tooltips have Markup and Pixbufs in them =-). Tomorrow, KingAnt gets back. I'll let him readd the AIM-specific tooltip stuff. Capabilities and logged on time used to live in the buddy struct, but were removed for being too aim-centric. KingAnt will put them back, I'm sure. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Wed, 12 Mar 2003 11:37:31 +0000
parents 39068784aa08
children 751c37a940dd
line wrap: on
line diff
--- a/src/protocols/msn/msn.c	Wed Mar 12 07:09:27 2003 +0000
+++ b/src/protocols/msn/msn.c	Wed Mar 12 11:37:31 2003 +0000
@@ -1643,6 +1643,10 @@
 	return NULL;
 }
 
+static const char *msn_tooltip_text(struct buddy *b) {
+	return g_strdup(msn_get_away_text(b->uc >> 1));
+}
+
 static GList *msn_buddy_menu(struct gaim_connection *gc, char *who)
 {
 	GList *m = NULL;
@@ -2007,6 +2011,7 @@
 	ret->send_typing = msn_send_typing;
 	ret->away_states = msn_away_states;
 	ret->status_text = msn_status_text;
+	ret->tooltip_text = msn_tooltip_text;
 	ret->set_away = msn_set_away;
 	ret->set_idle = msn_set_idle;
 	ret->add_buddy = msn_add_buddy;