Mercurial > pidgin
annotate src/internal.h @ 8442:3d0178c4f390
[gaim-migrate @ 9172]
" This is that thing Sean told me to do. Well part of it.
We now are careful to send html to gtkimhtml when
sending a message, while still sending plain text to
those protocols that need it. We send the fancy html on
all the signals we emit though. Sean didn't say what to
do about those. I figure always sending html on signals
sounds good.
I'm not sure I like how I did this exactly, especially
with respect to whether it's the core or ui's job to
make sure the html prpl flag gets honored. But it
should be good enough for now.
Anyway, this fixes the "sending someone <> on
IRC/ICQ/MSN/etc shows up blank on my end!" problem.
All prpls need to pass html to the core now, as Sean
said in his email. I made msn, and gg comply. IRC was
cool enough to already be complying. Jabber is so cool
it actually takes html and isn't effected by this.
ICQ, OSCAR, Trepia, zephyr, and napster still need to
be fixed. (Note that it's not this patch that breaks
them, they're already broken in CVS). I think TOC uses
html and isn't effected.
I'm not bothering with the old ICQ prpl. I'm not sure
what's going on in trepia. I'm even less sure what's
going on in zephyr. I didn't even check if napster used
html or not.
For OSCAR, I'm hoping I can get KingAnt to fix it.
Normally I'd say, ICQ messages all need
gaim_escape_html called on them. But what about
receiving an ICQ messagefrom an AIM account, or vise versa?" -- marv yet
again
(00:48:48) LSchiere: marv: should i apply the patch sean asked for or
should i wait for him to look at it?
(00:49:17) marv: LSchiere: he talked like I should get it applied by
someone not him
(00:49:21) LSchiere: kay
(00:49:29) marv: he said i knew the appropriate people to talk to
(00:50:16) LSchiere: KingAnt: marv is making work for you
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sun, 14 Mar 2004 05:42:56 +0000 |
parents | fa6395637e2c |
children | 8b935eddeb10 |
rev | line source |
---|---|
5872 | 1 /** |
2 * @file internal.h Internal definitions and includes | |
6371
8f94cce8faa5
[gaim-migrate @ 6876]
Christian Hammond <chipx86@chipx86.com>
parents:
6170
diff
changeset
|
3 * @ingroup core |
5872 | 4 * |
5 * gaim | |
6 * | |
8046 | 7 * Gaim is the legal property of its developers, whose names are too numerous |
8 * to list here. Please refer to the COPYRIGHT file distributed with this | |
9 * source distribution. | |
5872 | 10 * |
11 * This program is free software; you can redistribute it and/or modify | |
12 * it under the terms of the GNU General Public License as published by | |
13 * the Free Software Foundation; either version 2 of the License, or | |
14 * (at your option) any later version. | |
15 * | |
16 * This program is distributed in the hope that it will be useful, | |
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 * GNU General Public License for more details. | |
20 * | |
21 * You should have received a copy of the GNU General Public License | |
22 * along with this program; if not, write to the Free Software | |
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
24 */ | |
25 #ifndef _GAIM_INTERNAL_H_ | |
26 #define _GAIM_INTERNAL_H_ | |
27 | |
28 #ifdef HAVE_CONFIG_H | |
6371
8f94cce8faa5
[gaim-migrate @ 6876]
Christian Hammond <chipx86@chipx86.com>
parents:
6170
diff
changeset
|
29 # include <config.h> |
5872 | 30 #endif |
31 | |
32 #ifdef ENABLE_NLS | |
33 # include <libintl.h> | |
34 # define _(x) gettext(x) | |
35 # ifdef gettext_noop | |
36 # define N_(String) gettext_noop (String) | |
37 # else | |
38 # define N_(String) (String) | |
39 # endif | |
40 #else | |
41 # define N_(String) (String) | |
42 # define _(x) (x) | |
5976 | 43 # define ngettext(Singular, Plural, Number) ((Number == 1) ? (Singular) : (Plural)) |
5872 | 44 #endif |
5976 | 45 /* |
46 * The Singular/Plural/Number ngettext define above was taken from | |
47 * an email to the texinfo mailing list by Manuel Guerrero. Thank | |
48 * you Manuel, and thank you Alex's good friend Google. | |
49 */ | |
5872 | 50 |
51 #ifdef HAVE_ENDIAN_H | |
52 # include <endian.h> | |
53 #endif | |
54 | |
55 #define MSG_LEN 2048 | |
56 /* The above should normally be the same as BUF_LEN, | |
57 * but just so we're explictly asking for the max message | |
58 * length. */ | |
59 #define BUF_LEN MSG_LEN | |
60 #define BUF_LONG BUF_LEN * 2 | |
61 | |
62 #include <sys/stat.h> | |
63 #include <sys/time.h> | |
64 #include <sys/types.h> | |
5912
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
65 #ifndef _WIN32 |
5872 | 66 #include <sys/wait.h> |
5912
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
67 #endif |
5872 | 68 #include <ctype.h> |
69 #include <errno.h> | |
70 #include <fcntl.h> | |
71 #include <math.h> | |
72 #include <stdio.h> | |
73 #include <stdlib.h> | |
74 #include <string.h> | |
75 #include <time.h> | |
76 | |
77 #ifdef HAVE_ICONV | |
78 #include <iconv.h> | |
79 #endif | |
80 | |
81 #ifdef HAVE_LANGINFO_CODESET | |
82 #include <langinfo.h> | |
83 #endif | |
84 | |
85 #ifdef GAIM_PLUGINS | |
86 # include <gmodule.h> | |
87 # ifndef _WIN32 | |
88 # include <dlfcn.h> | |
89 # endif | |
90 #endif | |
91 | |
5912
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
92 #ifndef _WIN32 |
5872 | 93 # include <netinet/in.h> |
94 # include <sys/socket.h> | |
6170 | 95 # include <arpa/inet.h> |
5872 | 96 # include <sys/un.h> |
97 # include <sys/utsname.h> | |
98 # include <netdb.h> | |
99 # include <signal.h> | |
100 # include <unistd.h> | |
101 #endif | |
102 | |
103 #ifndef MAXPATHLEN | |
104 # define MAXPATHLEN 1024 | |
105 #endif | |
106 | |
107 #ifndef HOST_NAME_MAX | |
108 # define HOST_NAME_MAX 255 | |
109 #endif | |
110 | |
111 #define PATHSIZE 1024 | |
112 | |
113 #include <glib.h> | |
114 | |
5912
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
115 #ifdef _WIN32 |
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
116 #include "win32dep.h" |
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
117 #endif |
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
118 |
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
119 |
6371
8f94cce8faa5
[gaim-migrate @ 6876]
Christian Hammond <chipx86@chipx86.com>
parents:
6170
diff
changeset
|
120 #define GAIM_WEBSITE "http://gaim.sourceforge.net/" |
5872 | 121 |
122 #endif /* _GAIM_INTERNAL_H_ */ |