Mercurial > pidgin.yaz
comparison src/gtkutils.c @ 8061:ea073d234191
[gaim-migrate @ 8749]
<b><i><u>what you see is what you get</u></i></b>
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sat, 10 Jan 2004 06:06:02 +0000 |
parents | fa6395637e2c |
children | ea3eb461efc0 |
comparison
equal
deleted
inserted
replaced
8060:b66733e6e6f2 | 8061:ea073d234191 |
---|---|
240 | 240 |
241 void | 241 void |
242 gaim_gtk_set_font_face(GaimGtkConversation *gtkconv, | 242 gaim_gtk_set_font_face(GaimGtkConversation *gtkconv, |
243 const char *font) | 243 const char *font) |
244 { | 244 { |
245 char *pre_fontface; | |
246 | |
247 if (gtkconv == NULL || font == NULL) | 245 if (gtkconv == NULL || font == NULL) |
248 return; | 246 return; |
249 | 247 |
250 strncpy(gtkconv->fontface, | 248 strncpy(gtkconv->fontface, |
251 (font && *font ? font : DEFAULT_FONT_FACE), | 249 (font && *font ? font : DEFAULT_FONT_FACE), |
252 sizeof(gtkconv->fontface)); | 250 sizeof(gtkconv->fontface)); |
253 | 251 |
254 gtkconv->has_font = TRUE; | 252 gtkconv->has_font = TRUE; |
255 | 253 |
256 pre_fontface = g_strconcat("<FONT FACE=\"", gtkconv->fontface, "\">", NULL); | 254 gtk_imhtml_toggle_fontface(GTK_IMHTML(gtkconv->entry), gtkconv->fontface); |
257 gaim_gtk_surround(gtkconv, pre_fontface, "</FONT>"); | |
258 | 255 |
259 gtk_widget_grab_focus(gtkconv->entry); | 256 gtk_widget_grab_focus(gtkconv->entry); |
260 | 257 |
261 g_free(pre_fontface); | |
262 } | 258 } |
263 | 259 |
264 static int | 260 static int |
265 des_save_icon(GtkObject *obj, GdkEvent *e, | 261 des_save_icon(GtkObject *obj, GdkEvent *e, |
266 GaimGtkConversation *gtkconv) | 262 GaimGtkConversation *gtkconv) |