Mercurial > pidgin.yaz
comparison src/buddy.c @ 1056:bde34730789c
[gaim-migrate @ 1066]
removed unnecessary dependency on libfaim's aim.h from all files except the one that really needs it, oscar.c
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 03 Nov 2000 10:31:56 +0000 |
parents | 749e25dc90cb |
children | d50d3abb9eb7 |
comparison
equal
deleted
inserted
replaced
1055:5a99def38a47 | 1056:bde34730789c |
---|---|
38 | 38 |
39 #include <gtk/gtk.h> | 39 #include <gtk/gtk.h> |
40 #include <gdk/gdkx.h> | 40 #include <gdk/gdkx.h> |
41 #include "prpl.h" | 41 #include "prpl.h" |
42 #include "gaim.h" | 42 #include "gaim.h" |
43 #include <aim.h> | |
44 #include "pixmaps/login_icon.xpm" | 43 #include "pixmaps/login_icon.xpm" |
45 #include "pixmaps/logout_icon.xpm" | 44 #include "pixmaps/logout_icon.xpm" |
46 #include "pixmaps/no_icon.xpm" | 45 #include "pixmaps/no_icon.xpm" |
47 | 46 |
48 #include "pixmaps/away_small.xpm" | 47 #include "pixmaps/away_small.xpm" |
1201 | 1200 |
1202 bp = bp->next; | 1201 bp = bp->next; |
1203 | 1202 |
1204 } | 1203 } |
1205 | 1204 |
1206 } | |
1207 | |
1208 | |
1209 static char *caps_string(u_short caps) | |
1210 { | |
1211 static char buf[BUF_LEN]; | |
1212 int count = 0, i = 0; | |
1213 u_short bit = 1; | |
1214 while (bit <= AIM_CAPS_SENDFILE) { | |
1215 if (bit & caps) { | |
1216 switch (bit) { | |
1217 case AIM_CAPS_BUDDYICON: | |
1218 i += g_snprintf(buf + i, sizeof(buf) - i, _("%sBuddy Icon"), count ? ", " : ""); | |
1219 break; | |
1220 case AIM_CAPS_VOICE: | |
1221 i += g_snprintf(buf + i, sizeof(buf) - i, _("%sVoice"), count ? ", " : ""); | |
1222 break; | |
1223 case AIM_CAPS_IMIMAGE: | |
1224 i += g_snprintf(buf + i, sizeof(buf) - i, _("%sIM Image"), count ? ", " : ""); | |
1225 break; | |
1226 case AIM_CAPS_CHAT: | |
1227 i += g_snprintf(buf + i, sizeof(buf) - i, _("%sChat"), count ? ", " : ""); | |
1228 break; | |
1229 case AIM_CAPS_GETFILE: | |
1230 i += g_snprintf(buf + i, sizeof(buf) - i, _("%sGet File"), count ? ", " : ""); | |
1231 break; | |
1232 case AIM_CAPS_SENDFILE: | |
1233 i += g_snprintf(buf + i, sizeof(buf) - i, _("%sSend File"), count ? ", " : ""); | |
1234 break; | |
1235 } | |
1236 count++; | |
1237 } | |
1238 bit <<= 1; | |
1239 } | |
1240 return buf; | |
1241 } | 1205 } |
1242 | 1206 |
1243 | 1207 |
1244 static struct group_show *find_group_show(char *group) { | 1208 static struct group_show *find_group_show(char *group) { |
1245 GSList *m = shows; | 1209 GSList *m = shows; |