# HG changeset patch # User Stu Tomlinson # Date 1210191852 0 # Node ID b4b7ba4d1a665cade913109e1432e4ea52da2848 # Parent 7d4fcb1425724a99994af775f9af304e8bbe9e95 Quiet the output from gconftool-2 when there is no document font name in the schema diff -r 7d4fcb142572 -r b4b7ba4d1a66 pidgin/gtkutils.c --- a/pidgin/gtkutils.c Wed May 07 19:43:40 2008 +0000 +++ b/pidgin/gtkutils.c Wed May 07 20:24:12 2008 +0000 @@ -116,12 +116,14 @@ if ((path = g_find_program_in_path("gconftool-2"))) { char *font = NULL; + char *err = NULL; g_free(path); if (g_spawn_command_line_sync( "gconftool-2 -g /desktop/gnome/interface/document_font_name", - &font, NULL, NULL, NULL)) { + &font, &err, NULL, NULL)) { desc = pango_font_description_from_string(font); } + g_free(err); g_free(font); } }