| 
      
      
      From: <sa...@us...> - 2006-09-01 18:34:57
      
     | 
| Revision: 17116
          http://svn.sourceforge.net/gaim/?rev=17116&view=rev
Author:   sadrul
Date:     2006-09-01 11:34:53 -0700 (Fri, 01 Sep 2006)
Log Message:
-----------
Show the account name and prpl in conversation-window titles.
Modified Paths:
--------------
    trunk/console/gntconv.c
Modified: trunk/console/gntconv.c
===================================================================
--- trunk/console/gntconv.c	2006-09-01 18:29:50 UTC (rev 17115)
+++ trunk/console/gntconv.c	2006-09-01 18:34:53 UTC (rev 17116)
@@ -201,6 +201,7 @@
 	char *title;
 	GaimConversationType type;
 	GaimConversation *cc;
+	GaimAccount *account;
 
 	if (ggc)
 		return;
@@ -220,8 +221,10 @@
 		return;
 	}
 
+	account = gaim_conversation_get_account(conv);
 	type = gaim_conversation_get_type(conv);
-	title = g_strdup_printf(_("%s"), gaim_conversation_get_title(conv));
+	title = g_strdup_printf(_("%s (%s -- %s)"), gaim_conversation_get_title(conv),
+			gaim_account_get_username(account), gaim_account_get_protocol_name(account));
 	
 	ggc->window = gnt_box_new(FALSE, TRUE);
 	gnt_box_set_title(GNT_BOX(ggc->window), title);
@@ -633,11 +636,17 @@
 void gg_conversation_set_active(GaimConversation *conv)
 {
 	GGConv *ggconv = conv->ui_data;
+	GaimAccount *account;
+	char *title;
 
 	g_return_if_fail(ggconv);
 	g_return_if_fail(g_list_find(ggconv->list, conv));
 
 	ggconv->active_conv = conv;
-	gnt_screen_rename_widget(ggconv->window, gaim_conversation_get_title(conv));
+	account = gaim_conversation_get_account(conv);
+	title = g_strdup_printf(_("%s (%s -- %s)"), gaim_conversation_get_title(conv),
+			gaim_account_get_username(account), gaim_account_get_protocol_name(account));
+	gnt_screen_rename_widget(ggconv->window, title);
+	g_free(title);
 }
 
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 |