Mercurial > pidgin.yaz
view plugins/crazychat/face.c @ 13753:c066473fff04
[gaim-migrate @ 16164]
SF Patch #1482906 from Sadrul
"The timestamp plugin was not working. This makes it
work again. Looks like I didn't update this one when
the displaying- signals were moved to gtkconv from conv.
Also, I think having this timestamp work for chat
windows can't hurt. So I have added support for that too."
If you object to the change in functionality, that's easy to remove. I wasn't sure, since I don't use this plugin, but I kept it because I can't think of a reason you wouldn't want the timestamps in chats as well.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Tue, 09 May 2006 01:42:39 +0000 |
parents | ed017b9c532d |
children |
line wrap: on
line source
#include "face.h" #include "sharky.h" #include "doggy.h" #include <assert.h> FACE init_face(KIND kind) { FACE face; face = (FACE)malloc(sizeof(*face)); switch(kind){ case DOG: init_dog(face); break; case SHARK: init_shark(face); break; default: printf("default face\n"); init_dog(face); break; } return face; } void draw_face(FACE face, GLfloat zrot, GLfloat yrot, BOOL left_eye, BOOL right_eye, GLfloat mouth_open, DIRECTION dir, OUTPUT_MODE mode){ face->draw_func(face, zrot, yrot, left_eye, right_eye, mouth_open, dir, mode); } void change_materials(FACE f, int* mats, int num_change){ int i; assert(!(num_change<0 || num_change>NUM_PARTS)); for(i=0;i<num_change;i++){ f->mat_indeces[i]=mats[i]; } } void free_face(FACE f){}