# HG changeset patch # User Eric Polino # Date 1182553511 0 # Node ID ebc2288d925381485c49f8963b0a54a12b0bdb83 # Parent 60c6090c0e290c19a6db1b4d54d69c9ccc26b56b Conversation window names are now suffixed by type diff -r 60c6090c0e29 -r ebc2288d9253 finch/gntconv.c --- a/finch/gntconv.c Fri Jun 22 22:20:39 2007 +0000 +++ b/finch/gntconv.c Fri Jun 22 23:05:11 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);