Mercurial > pidgin.yaz
comparison src/gtkconv.c @ 6141:387221e0623f
[gaim-migrate @ 6615]
make the register button behave itself
also actually use the font face and size prefs, not that anyone actually uses
those ;-)
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 15 Jul 2003 19:52:52 +0000 |
parents | 11bedb793a44 |
children | 3b5c86808a66 |
comparison
equal
deleted
inserted
replaced
6140:04c1b0ba74eb | 6141:387221e0623f |
---|---|
109 | 109 |
110 GaimConversation *conv; | 110 GaimConversation *conv; |
111 | 111 |
112 } InviteBuddyInfo; | 112 } InviteBuddyInfo; |
113 | 113 |
114 char fontface[128] = { 0 }; | |
115 int fontsize = 3; | |
116 | |
117 static GtkWidget *invite_dialog = NULL; | 114 static GtkWidget *invite_dialog = NULL; |
118 | 115 |
119 /* Prototypes. <-- because Paco-Paco hates this comment. */ | 116 /* Prototypes. <-- because Paco-Paco hates this comment. */ |
120 static void check_everything(GtkTextBuffer *buffer); | 117 static void check_everything(GtkTextBuffer *buffer); |
121 static void set_toggle(GtkWidget *tb, gboolean active); | 118 static void set_toggle(GtkWidget *tb, gboolean active); |
409 strcpy(buf, buf2); | 406 strcpy(buf, buf2); |
410 } | 407 } |
411 | 408 |
412 if (gaim_prefs_get_bool("/gaim/gtk/conversations/use_custom_size")) { | 409 if (gaim_prefs_get_bool("/gaim/gtk/conversations/use_custom_size")) { |
413 g_snprintf(buf2, limit, | 410 g_snprintf(buf2, limit, |
414 "<FONT SIZE=\"%d\">%s</FONT>", fontsize, buf); | 411 "<FONT SIZE=\"%d\">%s</FONT>", |
412 gaim_prefs_get_int("/gaim/gtk/conversations/font_size"), | |
413 buf); | |
415 strcpy(buf, buf2); | 414 strcpy(buf, buf2); |
416 } | 415 } |
417 | 416 |
418 if (gaim_prefs_get_bool("/gaim/gtk/conversations/use_custom_fgcolor")) { | 417 if (gaim_prefs_get_bool("/gaim/gtk/conversations/use_custom_fgcolor")) { |
419 g_snprintf(buf2, limit, | 418 g_snprintf(buf2, limit, |
5224 | 5223 |
5225 void | 5224 void |
5226 gaim_gtkconv_update_font_face(GaimConversation *conv) | 5225 gaim_gtkconv_update_font_face(GaimConversation *conv) |
5227 { | 5226 { |
5228 GaimGtkConversation *gtkconv; | 5227 GaimGtkConversation *gtkconv; |
5229 | 5228 |
5230 if (!GAIM_IS_GTK_CONVERSATION(conv)) | 5229 if (!GAIM_IS_GTK_CONVERSATION(conv)) |
5231 return; | 5230 return; |
5232 | 5231 |
5233 gtkconv = GAIM_GTK_CONVERSATION(conv); | 5232 gtkconv = GAIM_GTK_CONVERSATION(conv); |
5234 | 5233 |
5235 strncpy(gtkconv->fontface, fontface, 128); | 5234 strncpy(gtkconv->fontface, |
5235 gaim_prefs_get_string("/gaim/gtk/conversations/font_face"), | |
5236 sizeof(gtkconv->fontface)); | |
5236 } | 5237 } |
5237 | 5238 |
5238 void | 5239 void |
5239 gaim_gtkconv_update_buttons_by_protocol(GaimConversation *conv) | 5240 gaim_gtkconv_update_buttons_by_protocol(GaimConversation *conv) |
5240 { | 5241 { |