changeset 19113:83b858ee2804

merge of 'ae0440e75a9a8e5aa5e513b57295049b0c338cf4' and 'bc87d18d218432986c9436e902d8d6922ce54b90'
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 23 Jun 2007 02:44:28 +0000
parents ebc2288d9253 (diff) c0abe71ac1ff (current diff)
children 6de2e9ba0930
files
diffstat 1 files changed, 18 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/finch/gntconv.c	Sat Jun 23 02:39:28 2007 +0000
+++ b/finch/gntconv.c	Sat Jun 23 02:44:28 2007 +0000
@@ -485,7 +485,24 @@
 	gnt_box_set_title(GNT_BOX(ggc->window), title);
 	gnt_box_set_toplevel(GNT_BOX(ggc->window), TRUE);
 	gnt_box_set_pad(GNT_BOX(ggc->window), 0);
-	gnt_widget_set_name(ggc->window, "conversation-window");
+
+	switch(conv->type){
+		case PURPLE_CONV_TYPE_UNKNOWN:
+			gnt_widget_set_name(ggc->window, "conversation-window-unknown" );
+			break;
+		case PURPLE_CONV_TYPE_IM:
+			gnt_widget_set_name(ggc->window, "conversation-window-im" );
+			break;
+		case PURPLE_CONV_TYPE_CHAT:
+			gnt_widget_set_name(ggc->window, "conversation-window-chat" );
+			break;
+		case PURPLE_CONV_TYPE_MISC:
+			gnt_widget_set_name(ggc->window, "conversation-window-misc" );
+			break;
+		case PURPLE_CONV_TYPE_ANY:
+			gnt_widget_set_name(ggc->window, "conversation-window-any" );
+			break;
+	}
 
 	gg_create_menu(ggc);