Mercurial > pidgin.yaz
changeset 19112:ebc2288d9253
Conversation window names are now suffixed by type
author | Eric Polino <aluink@pidgin.im> |
---|---|
date | Fri, 22 Jun 2007 23:05:11 +0000 |
parents | 60c6090c0e29 |
children | 83b858ee2804 |
files | finch/gntconv.c |
diffstat | 1 files changed, 18 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);