changeset 1104:46c10fa4e557

[gaim-migrate @ 1114] update the tooltip on signon committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 18 Nov 2000 02:17:07 +0000
parents 7aabbbaae829
children c964df5b2a84
files src/gnome_applet_mgr.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gnome_applet_mgr.c	Fri Nov 17 22:45:31 2000 +0000
+++ b/src/gnome_applet_mgr.c	Sat Nov 18 02:17:07 2000 +0000
@@ -110,6 +110,8 @@
 
 static gboolean update_applet(gboolean force_update){
 	static enum gaim_user_states old_user_status = offline;
+	char buf[BUF_LONG];
+	GSList *c = connections;
 
 	if( MRI_user_status != old_user_status || force_update) {
 
@@ -133,6 +135,13 @@
 					icon_online_pm,
 					icon_online_bm );                
 			gtk_label_set( GTK_LABEL(status_label), _MSG_ONLINE_ );
+			g_snprintf(buf, sizeof buf, "Online: ");
+			while (c) {
+				strcat(buf, ((struct gaim_connection *)c->data)->username);
+				c = g_slist_next(c);
+				if (c) strcat(buf, ", ");
+			}
+			applet_set_tooltips(buf);
 			break;
 		case away:
 			gtk_pixmap_set( GTK_PIXMAP(icon),