comparison src/gtkprefs.c @ 6982:083d1e4a9c78

[gaim-migrate @ 7538] This is Mr. Holland's Opus. And by Mr. Holland I mean Robot101. He rewrote the coreish IM image support so that the binary data gets ripped out in the prpl and put in an imgstore instead of just being passed in the same huge as char string as the actual message. This is good because it's prpl agnostic, or something. It also means we don't have a silly length of "-1" with pretty much every send or receive IM function. It should be crash free, bug free, and memleak free, but additional testing is always a good thing. If you like good stuff then you'll love this patch. But don't take my word for it--ba dun dunt! committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 27 Sep 2003 19:17:21 +0000
parents bdd046deec7e
children 5a45833dd253
comparison
equal deleted inserted replaced
6981:abd3c684da31 6982:083d1e4a9c78
2112 gtk_tree_model_get_value (model, &iter, 1, &val); 2112 gtk_tree_model_get_value (model, &iter, 1, &val);
2113 am = g_value_get_pointer(&val); 2113 am = g_value_get_pointer(&val);
2114 gtk_imhtml_clear(GTK_IMHTML(away_text)); 2114 gtk_imhtml_clear(GTK_IMHTML(away_text));
2115 strncpy(buffer, am->message, BUF_LONG); 2115 strncpy(buffer, am->message, BUF_LONG);
2116 tmp = stylize(buffer, BUF_LONG); 2116 tmp = stylize(buffer, BUF_LONG);
2117 gtk_imhtml_append_text(GTK_IMHTML(away_text), tmp, -1, GTK_IMHTML_NO_TITLE | 2117 gtk_imhtml_append_text(GTK_IMHTML(away_text), tmp, GTK_IMHTML_NO_TITLE |
2118 GTK_IMHTML_NO_COMMENTS | GTK_IMHTML_NO_SCROLL); 2118 GTK_IMHTML_NO_COMMENTS | GTK_IMHTML_NO_SCROLL);
2119 gtk_imhtml_append_text(GTK_IMHTML(away_text), "<BR>", -1, GTK_IMHTML_NO_TITLE | 2119 gtk_imhtml_append_text(GTK_IMHTML(away_text), "<BR>", GTK_IMHTML_NO_TITLE |
2120 GTK_IMHTML_NO_COMMENTS | GTK_IMHTML_NO_SCROLL); 2120 GTK_IMHTML_NO_COMMENTS | GTK_IMHTML_NO_SCROLL);
2121 g_free(tmp); 2121 g_free(tmp);
2122 g_value_unset (&val); 2122 g_value_unset (&val);
2123 2123
2124 } 2124 }