comparison src/conversation.c @ 411:a330017b3aa4

[gaim-migrate @ 421] Trying to make things compile cleanly committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 15 Jun 2000 05:27:25 +0000
parents be408b41c172
children 6a92cd7322cc
comparison
equal deleted inserted replaced
410:9e8c02ed5d06 411:a330017b3aa4
152 int i = 0; 152 int i = 0;
153 153
154 s = gtk_editable_get_chars(GTK_EDITABLE(entry), 0, -1); 154 s = gtk_editable_get_chars(GTK_EDITABLE(entry), 0, -1);
155 t = s; 155 t = s;
156 156
157 if (t = strstr(s, prefix)) 157 if ((t = strstr(s, prefix)) != NULL)
158 { 158 {
159 for (i = 1; t[i] != '\0'; i++) 159 for (i = 1; t[i] != '\0'; i++)
160 { 160 {
161 161
162 if (t[i] == '>') 162 if (t[i] == '>')
308 } 308 }
309 309
310 void set_font_face(GtkWidget *widget, struct conversation *c) 310 void set_font_face(GtkWidget *widget, struct conversation *c)
311 { 311 {
312 char *pre_fontface, *old_font_face; 312 char *pre_fontface, *old_font_face;
313 int alloc = 0, length; 313 int alloc = 0;
314 314
315 if (!(font_options & OPT_FONT_FACE)) 315 if (!(font_options & OPT_FONT_FACE))
316 return; 316 return;
317 317
318 if (c->current_fontface[0] && strcmp(c->current_fontface, "(null)")) 318 if (c->current_fontface[0] && strcmp(c->current_fontface, "(null)"))
328 g_free(pre_fontface); 328 g_free(pre_fontface);
329 alloc--; 329 alloc--;
330 pre_fontface = "<FONT FACE=\"Helvetica\">"; 330 pre_fontface = "<FONT FACE=\"Helvetica\">";
331 } 331 }
332 332
333 if (old_font_face = get_tag_by_prefix(c->entry, "<FONT FACE")) 333 if ((old_font_face = get_tag_by_prefix(c->entry, "<FONT FACE")) != NULL)
334 { 334 {
335 remove_tags(c->entry, old_font_face); 335 remove_tags(c->entry, old_font_face);
336 remove_tags(c->entry, "</FONT>"); 336 remove_tags(c->entry, "</FONT>");
337 } 337 }
338 338