Mon, 31 Oct 2005 02:19:51 +0000
[gaim-migrate @ 14205]
SF Patch #1342017 from sadrul
"This patch allows a user to change brush color during
the doodle-session.
This patch is mostly a rough one to get an idea whether
the approach is correct. To make things simple, I have
kept brush_size and brush_color in GaimGtkWhiteboard,
although it's there in doodle_session. It could be in
either place, although I would think it's best to be in
GaimGtkWhiteboard because any/most implementations of
doodle-ing would have these attributes. So keeping them
within the prpl may not be the best option?
Anyway, considering the brush-size and color stay at
the prpl for now, I have introduced two functions in
GaimWhiteboardPrplOps to get/set the size and color of
the brush from the prpl.
rekkanoryo (using Y! 7) and I (using gaim) have tested
this, and it seemed to work OK."
Plus, I cleaned up a whole bunch of code.
My apologies for this all being committed together, but it was a case of "Oh, this will be quick." that lead into hours of making intertwined changes.
committer: Richard Laager <rlaager@pidgin.im>
| 8350 | 1 | /* |
| 2 | * yahoo_auth.h: Header for Yahoo Messenger authentication schemes. Eew. | |
| 3 | * | |
| 4 | * Copyright(c) 2003 Cerulean Studios | |
| 5 | */ | |
| 6 | ||
| 7 | #ifndef _YAHOO_AUTH_H_ | |
| 8 | #define _YAHOO_AUTH_H_ | |
| 9 | ||
| 10 | #define NUM_TYPE_THREES 105 | |
| 11 | #define NUM_TYPE_FOURS 56 | |
| 12 | #define NUM_TYPE_FIVES 37 | |
| 13 | ||
| 14 | unsigned int yahoo_auth_finalCountdown(unsigned int challenge, int divisor, int inner_loop, int outer_loop); | |
| 15 | ||
| 16 | /* We've defined the Yahoo authentication functions as having types 1-5; all take either 1 or 2 arguments. | |
| 17 | */ | |
| 18 | ||
| 19 | typedef struct _auth { | |
| 20 | int type; | |
| 21 | int var1; | |
| 22 | int var2; | |
| 23 | } auth_function_t; | |
| 24 | ||
| 25 | /* Type 3, 4 and 5 require lookups into ypager.exe's many static chunks of 256 bytes. Store them here. | |
| 26 | */ | |
| 27 | ||
| 28 | struct buffer_t { | |
| 29 | unsigned int buffer_start; | |
| 30 | unsigned char buffer[257]; | |
| 31 | }; | |
| 32 | ||
| 33 | #endif /* _YAHOO_AUTH_H_ */ |