# HG changeset patch # User Sean Egan # Date 1170020432 0 # Node ID c68f2808f703796b42f67145d99bd5a263be7703 # Parent c6115dc73b2827ed012206fd9a4593d73a52564d# Parent 154b8d8643a2b25808d4371658186419dc6fdb15 merge of '53ec0f43994bc2a1adb7671f7f52c365475ff97a' and 'd29b89ab5d6d87418a4f03545dec207a74bdad0d' diff -r c6115dc73b28 -r c68f2808f703 pidgin/gtkutils.c --- a/pidgin/gtkutils.c Sun Jan 28 21:25:36 2007 +0000 +++ b/pidgin/gtkutils.c Sun Jan 28 21:40:32 2007 +0000 @@ -98,6 +98,27 @@ gaim_gtkthemes_smiley_themeize(imhtml); gtk_imhtml_set_funcs(GTK_IMHTML(imhtml), >kimhtml_cbs); + + /* Use the GNOME "document" font, if applicable */ + if (gaim_running_gnome()) { + char *path, *font; + PangoFontDescription *desc = NULL; + + if ((path = g_find_program_in_path("gconftool-2"))) { + g_free(path); + if (!g_spawn_command_line_sync( + "gconftool-2 -g /desktop/gnome/interface/document_font_name", + &font, NULL, NULL, NULL)) + return; + } + desc = pango_font_description_from_string(font); + g_free(font); + + if (desc) { + gtk_widget_modify_font(imhtml, desc); + pango_font_description_free(desc); + } + } } GtkWidget *