comparison src/protocols/yahoo/yahoo_doodle.c @ 12022:9d562dde0a3a

[gaim-migrate @ 14315] Whiteboard cleanup from sadrul. This also adds the ability to set the brush to the core. I noticed that none of the whiteboard stuff is in Changelog.API yet but I'm about to go to bed and am too lazy to do it right now. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 09 Nov 2005 04:42:42 +0000
parents af17c7940371
children 3e27ed592e02
comparison
equal deleted inserted replaced
12021:1a86417abfc8 12022:9d562dde0a3a
579 draw_list = draw_list->next->next; 579 draw_list = draw_list->next->next;
580 } 580 }
581 } 581 }
582 582
583 void yahoo_doodle_get_brush(GaimWhiteboard *wb, int *size, int *color) 583 void yahoo_doodle_get_brush(GaimWhiteboard *wb, int *size, int *color)
584 { 584 {
585 doodle_session *ds = (doodle_session *)wb->proto_data; 585 doodle_session *ds = (doodle_session *)wb->proto_data;
586 *size = ds->brush_size; 586 *size = ds->brush_size;
587 *color = ds->brush_color; 587 *color = ds->brush_color;
588 } 588 }
589 589
590 void yahoo_doodle_set_brush(GaimWhiteboard *wb, int size, int color) 590 void yahoo_doodle_set_brush(GaimWhiteboard *wb, int size, int color)
591 { 591 {
592 doodle_session *ds = (doodle_session *)wb->proto_data; 592 doodle_session *ds = (doodle_session *)wb->proto_data;
593 ds->brush_size = size; 593 ds->brush_size = size;
594 ds->brush_color = color; 594 ds->brush_color = color;
595 } 595
596 596 /* Notify the core about the changes */
597 gaim_whiteboard_set_brush(wb, size, color);
598 }
599