Mercurial > pidgin.yaz
comparison src/conversation.c @ 5872:059d95c67cda
[gaim-migrate @ 6304]
The legendary Header File Cleanup! Files now only include what they need.
This should reduce the number of files that must recompile when a header
file changes. It's a lot nicer. Trust me on it. I also added a couple new
header files. I hope I didn't break TOO much!
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 14 Jun 2003 23:21:02 +0000 |
parents | 52d5fad43950 |
children | 1e4a574bb46d |
comparison
equal
deleted
inserted
replaced
5871:508adf90fbb9 | 5872:059d95c67cda |
---|---|
16 * You should have received a copy of the GNU General Public License | 16 * You should have received a copy of the GNU General Public License |
17 * along with this program; if not, write to the Free Software | 17 * along with this program; if not, write to the Free Software |
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 * | 19 * |
20 */ | 20 */ |
21 | 21 #include "internal.h" |
22 #ifdef HAVE_CONFIG_H | 22 #include "blist.h" |
23 #include <config.h> | |
24 #endif | |
25 | |
26 #include <string.h> | |
27 #include <stdlib.h> | |
28 #include <sys/stat.h> | |
29 #include <errno.h> | |
30 #include <ctype.h> | |
31 #include "conversation.h" | 23 #include "conversation.h" |
32 #include "gaim.h" | 24 #include "debug.h" |
33 #include "multi.h" | |
34 #include "prpl.h" | |
35 #include "notify.h" | 25 #include "notify.h" |
36 #include "prefs.h" | 26 #include "prefs.h" |
37 | 27 #include "prpl.h" |
38 #ifdef _WIN32 | 28 #include "util.h" |
39 #include "win32dep.h" | 29 |
40 #endif | 30 /* XXX */ |
31 #include "ui.h" | |
41 | 32 |
42 typedef struct | 33 typedef struct |
43 { | 34 { |
44 char *id; | 35 char *id; |
45 char *name; | 36 char *name; |
146 if (!c) | 137 if (!c) |
147 return FALSE; | 138 return FALSE; |
148 | 139 |
149 im = GAIM_IM(c); | 140 im = GAIM_IM(c); |
150 | 141 |
151 gaim_im_set_typing_state(im, NOT_TYPING); | 142 gaim_im_set_typing_state(im, GAIM_NOT_TYPING); |
152 gaim_im_update_typing(im); | 143 gaim_im_update_typing(im); |
153 gaim_im_stop_typing_timeout(im); | 144 gaim_im_stop_typing_timeout(im); |
154 | 145 |
155 return FALSE; | 146 return FALSE; |
156 } | 147 } |
167 | 158 |
168 if (conv != NULL && gc != NULL && name != NULL) { | 159 if (conv != NULL && gc != NULL && name != NULL) { |
169 gaim_im_set_type_again(GAIM_IM(conv), TRUE); | 160 gaim_im_set_type_again(GAIM_IM(conv), TRUE); |
170 | 161 |
171 /* XXX Somebody add const stuff! */ | 162 /* XXX Somebody add const stuff! */ |
172 serv_send_typing(gc, (char *)name, TYPED); | 163 serv_send_typing(gc, (char *)name, GAIM_TYPED); |
173 | 164 |
174 gaim_debug(GAIM_DEBUG_MISC, "conversation", "typed...\n"); | 165 gaim_debug(GAIM_DEBUG_MISC, "conversation", "typed...\n"); |
175 } | 166 } |
176 | 167 |
177 return FALSE; | 168 return FALSE; |
960 /* Still connected */ | 951 /* Still connected */ |
961 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); | 952 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); |
962 | 953 |
963 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) { | 954 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) { |
964 if (gaim_prefs_get_bool("/core/conversations/im/send_typing")) | 955 if (gaim_prefs_get_bool("/core/conversations/im/send_typing")) |
965 serv_send_typing(gc, (char *)name, NOT_TYPING); | 956 serv_send_typing(gc, (char *)name, GAIM_NOT_TYPING); |
966 | 957 |
967 if (gc && prpl_info->convo_closed != NULL) | 958 if (gc && prpl_info->convo_closed != NULL) |
968 prpl_info->convo_closed(gc, (char *)name); | 959 prpl_info->convo_closed(gc, (char *)name); |
969 } | 960 } |
970 else if (gaim_conversation_get_type(conv) == GAIM_CONV_CHAT) { | 961 else if (gaim_conversation_get_type(conv) == GAIM_CONV_CHAT) { |
1481 if (!(flags & WFLAG_RECV) && !(flags & WFLAG_SYSTEM)) | 1472 if (!(flags & WFLAG_RECV) && !(flags & WFLAG_SYSTEM)) |
1482 return; | 1473 return; |
1483 | 1474 |
1484 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) { | 1475 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) { |
1485 if ((flags & WFLAG_RECV) == WFLAG_RECV) | 1476 if ((flags & WFLAG_RECV) == WFLAG_RECV) |
1486 gaim_im_set_typing_state(GAIM_IM(conv), NOT_TYPING); | 1477 gaim_im_set_typing_state(GAIM_IM(conv), GAIM_NOT_TYPING); |
1487 } | 1478 } |
1488 | 1479 |
1489 if (gaim_window_get_active_conversation(win) != conv) { | 1480 if (gaim_window_get_active_conversation(win) != conv) { |
1490 if ((flags & WFLAG_NICK) == WFLAG_NICK || | 1481 if ((flags & WFLAG_NICK) == WFLAG_NICK || |
1491 gaim_conversation_get_unseen(conv) == GAIM_UNSEEN_NICK) | 1482 gaim_conversation_get_unseen(conv) == GAIM_UNSEEN_NICK) |