Mercurial > pidgin.yaz
changeset 18232:2b1af79e768f
Plucked revision from finchfeat to give different names to windows for
different types of conversations.
applied changes from 498ca4dd71cf163d032b2e43fa329ce0cb4e3491
through ae0440e75a9a8e5aa5e513b57295049b0c338cf4
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 23 Jun 2007 03:04:20 +0000 |
parents | d1f28d545d96 |
children | 98c1375232e2 |
files | COPYRIGHT finch/gntconv.c |
diffstat | 2 files changed, 19 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/COPYRIGHT Fri Jun 22 22:39:16 2007 +0000 +++ b/COPYRIGHT Sat Jun 23 03:04:20 2007 +0000 @@ -276,6 +276,7 @@ Julien Pivotto Ari Pollak Robey Pointer +Eric Polino Stephen Pope Nathan Poznick Jory A. Pratt
--- a/finch/gntconv.c Fri Jun 22 22:39:16 2007 +0000 +++ b/finch/gntconv.c Sat Jun 23 03:04:20 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);