Mercurial > pidgin
comparison src/protocols/yahoo/util.c @ 10899:1e6bdc7175e9
[gaim-migrate @ 12619]
Bits'n'pieces:
Don't allow gaim-remote "clones" to knock gaim out by specifying a big packet
length.
Correctly bound the point sizes in gtkimhtml & yahoo
Fix up some code in MSN that isn't actually being used, just in case someone
comes along and submits a patch that would use it.
Don't try writing to the server in MSN if you're not actually connected
Fix message flags in SILC
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Thu, 05 May 2005 13:09:28 +0000 |
parents | 1a97d5e88d12 |
children | f4e58e94ced3 |
comparison
equal
deleted
inserted
replaced
10898:cfacc0de0d94 | 10899:1e6bdc7175e9 |
---|---|
347 return ret; | 347 return ret; |
348 } | 348 } |
349 | 349 |
350 /* borrowed from gtkimhtml */ | 350 /* borrowed from gtkimhtml */ |
351 #define MAX_FONT_SIZE 7 | 351 #define MAX_FONT_SIZE 7 |
352 #define POINT_SIZE(x) (_point_sizes [MIN ((x), MAX_FONT_SIZE) - 1]) | 352 #define POINT_SIZE(x) (_point_sizes [MIN ((x > 0 ? x : 1), MAX_FONT_SIZE) - 1]) |
353 static gint _point_sizes [] = { 8, 10, 12, 14, 20, 30, 40 }; | 353 static gint _point_sizes [] = { 8, 10, 12, 14, 20, 30, 40 }; |
354 | 354 |
355 enum fatype { size, color, face, junk }; | 355 enum fatype { size, color, face, junk }; |
356 typedef struct { | 356 typedef struct { |
357 enum fatype type; | 357 enum fatype type; |