Mercurial > pidgin
diff src/conversation.c @ 2379:cacaf7ace3a5
[gaim-migrate @ 2392]
reorganization of some functions.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 28 Sep 2001 01:25:02 +0000 |
parents | 09fe1b00d31f |
children | bdc74764245c |
line wrap: on
line diff
--- a/src/conversation.c Thu Sep 27 23:58:48 2001 +0000 +++ b/src/conversation.c Fri Sep 28 01:25:02 2001 +0000 @@ -1823,6 +1823,38 @@ update_checkbox(cnv); } +int set_dispstyle(int chat) +{ + int dispstyle; + + if (chat) { + switch (chat_options & (OPT_CHAT_BUTTON_TEXT | OPT_CHAT_BUTTON_XPM)) { + case OPT_CHAT_BUTTON_TEXT: + dispstyle = 1; + break; + case OPT_CHAT_BUTTON_XPM: + dispstyle = 0; + break; + default: /* both or neither */ + dispstyle = 2; + break; + } + } else { + switch (im_options & (OPT_IM_BUTTON_TEXT | OPT_IM_BUTTON_XPM)) { + case OPT_IM_BUTTON_TEXT: + dispstyle = 1; + break; + case OPT_IM_BUTTON_XPM: + dispstyle = 0; + break; + default: /* both or neither */ + dispstyle = 2; + break; + } + } + return dispstyle; +} + void update_convo_add_button(struct conversation *c) { int dispstyle = set_dispstyle(0);