Mercurial > pidgin
comparison src/gtkimhtml.c @ 1453:ecf700f23852
[gaim-migrate @ 1463]
bugfixes
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 31 Jan 2001 11:25:18 +0000 |
parents | 91d84e2073de |
children | 637592eb8b24 |
comparison
equal
deleted
inserted
replaced
1452:3456fd563e75 | 1453:ecf700f23852 |
---|---|
1699 static GdkColor * | 1699 static GdkColor * |
1700 gtk_imhtml_get_color (const gchar *color) | 1700 gtk_imhtml_get_color (const gchar *color) |
1701 { | 1701 { |
1702 GdkColor c; | 1702 GdkColor c; |
1703 | 1703 |
1704 gdk_color_parse (color, &c); | 1704 if (!gdk_color_parse (color, &c)) |
1705 return NULL; | |
1705 | 1706 |
1706 return gdk_color_copy (&c); | 1707 return gdk_color_copy (&c); |
1707 } | 1708 } |
1708 | 1709 |
1709 static gint | 1710 static gint |
2331 GtkIMHtmlBit *bit; | 2332 GtkIMHtmlBit *bit; |
2332 | 2333 |
2333 intag = FALSE; | 2334 intag = FALSE; |
2334 tpos = 0; | 2335 tpos = 0; |
2335 | 2336 |
2336 if (imhtml->img == NULL) | 2337 if (imhtml->img == NULL) { |
2338 ws [wpos] = 0; | |
2339 strcat (ws, copy); | |
2340 wpos = strlen (ws); | |
2341 g_free (copy); | |
2337 continue; | 2342 continue; |
2343 } | |
2338 | 2344 |
2339 t = tag + strlen ("<IMG"); | 2345 t = tag + strlen ("<IMG"); |
2340 do { | 2346 do { |
2341 gboolean quote = FALSE; | 2347 gboolean quote = FALSE; |
2342 if (*t == '\0') break; | 2348 if (*t == '\0') break; |