# HG changeset patch # User Tim Ringenbach # Date 1087544342 0 # Node ID 2138b3a07cb89e41a43c5292f774ecfb84cf860b # Parent 04a3e9e869ee398ffa22291fec0a99c008be9249 [gaim-migrate @ 10115] [02:32] http://www.reaperworld.com/code/gaim/gaim-0.79cvs-doc_fixes_and_some_extended_null_checking_in_plugin_structs.diff [02:32] longest diff name EVER!! committer: Tailor Script diff -r 04a3e9e869ee -r 2138b3a07cb8 src/gtkimhtml.h --- a/src/gtkimhtml.h Fri Jun 18 07:28:25 2004 +0000 +++ b/src/gtkimhtml.h Fri Jun 18 07:39:02 2004 +0000 @@ -289,8 +289,8 @@ * @param text The formatted text to append. * @param options A GtkIMHtmlOptions object indicating insert behavior. */ -#define gtk_imhtml_append_text(x, y, z) \ - gtk_imhtml_append_text_with_images(x, y, z, NULL) +#define gtk_imhtml_append_text(imhtml, text, options) \ + gtk_imhtml_append_text_with_images(imhtml, text, options, NULL) /** * Appends HTML formatted text to a GTK IM/HTML. @@ -428,7 +428,7 @@ * @param imhtml The GTK IM/HTML. * @param iter The GtkTextIter at which to add the scalable. */ -void gtk_imhtml_hr_add_to(GtkIMHtmlScalable *scale, GtkIMHtml *, GtkTextIter *); +void gtk_imhtml_hr_add_to(GtkIMHtmlScalable *scale, GtkIMHtml *imhtml, GtkTextIter *iter); /** * Finds and highlights a given string in a GTK IM/HTML. diff -r 04a3e9e869ee -r 2138b3a07cb8 src/gtkprefs.c --- a/src/gtkprefs.c Fri Jun 18 07:28:25 2004 +0000 +++ b/src/gtkprefs.c Fri Jun 18 07:39:02 2004 +0000 @@ -1888,9 +1888,13 @@ plug = g_value_get_pointer(&val); pname = g_markup_escape_text(_(plug->info->name), -1); - pdesc = g_markup_escape_text(_(plug->info->description), -1); - pauth = g_markup_escape_text(_(plug->info->author), -1); - pweb = g_markup_escape_text(_(plug->info->homepage), -1); + pdesc = (plug->info->description) ? + g_markup_escape_text(_(plug->info->description), -1) : NULL; + pauth = (plug->info->author) ? + g_markup_escape_text(_(plug->info->author), -1) : NULL; + pweb = (plug->info->homepage) ? + g_markup_escape_text(_(plug->info->homepage), -1) : NULL; + if (plug->error != NULL) { perr = g_markup_escape_text(_(plug->error), -1); buf = g_strdup_printf( diff -r 04a3e9e869ee -r 2138b3a07cb8 src/util.h --- a/src/util.h Fri Jun 18 07:28:25 2004 +0000 +++ b/src/util.h Fri Jun 18 07:39:02 2004 +0000 @@ -570,9 +570,9 @@ /** * Converts a binary string into a NUL terminated ascii string, * replacing nonascii characters and characters below SPACE (including - * NUL) into \xyy, where yy are two hex digits. Also backslashes are - * changed into two backslashes (\\). The returned, newly allocated - * can be outputted to the console, and must be g_free()d. + * NUL) into \\xyy, where yy are two hex digits. Also backslashes are + * changed into two backslashes (\\\\). The returned, newly allocated + * string can be outputted to the console, and must be g_free()d. * * @param binary A string of random data, possibly with embedded NULs * and such.