changeset 22838:b4b7ba4d1a66

Quiet the output from gconftool-2 when there is no document font name in the schema
author Stu Tomlinson <stu@nosnilmot.com>
date Wed, 07 May 2008 20:24:12 +0000
parents 7d4fcb142572
children 4f65a1983a0a
files pidgin/gtkutils.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
 		}
 	}