Mercurial > pidgin.yaz
comparison src/gtkconv.c @ 4438:2054d8429925
[gaim-migrate @ 4713]
Setting the font face in preferences works again. Thanks CmdrChalupa.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 28 Jan 2003 02:45:34 +0000 |
parents | 31834b4598eb |
children | a65555132674 |
comparison
equal
deleted
inserted
replaced
4437:f5c6e33b1013 | 4438:2054d8429925 |
---|---|
3302 gtkconv->tooltips = gtk_tooltips_new(); | 3302 gtkconv->tooltips = gtk_tooltips_new(); |
3303 | 3303 |
3304 /* Setup the foreground and background colors */ | 3304 /* Setup the foreground and background colors */ |
3305 gaim_gtkconv_update_font_colors(conv); | 3305 gaim_gtkconv_update_font_colors(conv); |
3306 | 3306 |
3307 /* Setup the font face */ | |
3308 gaim_gtkconv_update_font_face(conv); | |
3309 | |
3307 if (conv_type == GAIM_CONV_CHAT) { | 3310 if (conv_type == GAIM_CONV_CHAT) { |
3308 gtkconv->u.chat = g_malloc0(sizeof(struct gaim_gtk_chat_pane)); | 3311 gtkconv->u.chat = g_malloc0(sizeof(struct gaim_gtk_chat_pane)); |
3309 | 3312 |
3310 pane = setup_chat_pane(conv); | 3313 pane = setup_chat_pane(conv); |
3311 } | 3314 } |
4600 } | 4603 } |
4601 | 4604 |
4602 void | 4605 void |
4603 gaim_gtkconv_update_font_colors(struct gaim_conversation *conv) | 4606 gaim_gtkconv_update_font_colors(struct gaim_conversation *conv) |
4604 { | 4607 { |
4605 struct gaim_gtk_conversation *gtkconv = GAIM_GTK_CONVERSATION(conv); | 4608 struct gaim_gtk_conversation *gtkconv; |
4606 | 4609 |
4607 gtkconv->fg_color.red = fgcolor.red; | 4610 if (!GAIM_IS_GTK_CONVERSATION(conv)) |
4608 gtkconv->fg_color.blue = fgcolor.blue; | 4611 return; |
4609 gtkconv->fg_color.green = fgcolor.green; | 4612 |
4610 | 4613 gtkconv = GAIM_GTK_CONVERSATION(conv); |
4611 gtkconv->bg_color.red = bgcolor.red; | 4614 |
4612 gtkconv->bg_color.blue = bgcolor.blue; | 4615 gtkconv->fg_color.red = fgcolor.red; |
4613 gtkconv->bg_color.green = bgcolor.green; | 4616 gtkconv->fg_color.blue = fgcolor.blue; |
4614 | 4617 gtkconv->fg_color.green = fgcolor.green; |
4618 | |
4619 gtkconv->bg_color.red = bgcolor.red; | |
4620 gtkconv->bg_color.blue = bgcolor.blue; | |
4621 gtkconv->bg_color.green = bgcolor.green; | |
4622 } | |
4623 | |
4624 void | |
4625 gaim_gtkconv_update_font_face(struct gaim_conversation *conv) | |
4626 { | |
4627 struct gaim_gtk_conversation *gtkconv; | |
4628 | |
4629 if (!GAIM_IS_GTK_CONVERSATION(conv)) | |
4630 return; | |
4631 | |
4632 gtkconv = GAIM_GTK_CONVERSATION(conv); | |
4633 | |
4634 strncpy(gtkconv->fontface, fontface, 128); | |
4615 } | 4635 } |
4616 | 4636 |
4617 void | 4637 void |
4618 gaim_gtkconv_update_tabs(void) | 4638 gaim_gtkconv_update_tabs(void) |
4619 { | 4639 { |