From 3bbde052351c710af69c1922dec72dc0f98ecc92 Mon Sep 17 00:00:00 2001 From: Jens Granseuer Date: Wed, 18 Feb 2009 18:51:28 +0000 Subject: [PATCH] Patch by: Jonas Bonn 2009-02-18 Jens Granseuer Patch by: Jonas Bonn * font-viewer/font-thumbnailer.c: (main): initialize the type system. Fixes hangs when thumbnailing (bug #572189) svn path=/trunk/; revision=9275 --- ChangeLog | 7 +++++++ font-viewer/font-thumbnailer.c | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2283d5d0e..ee03ceda4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-02-18 Jens Granseuer + + Patch by: Jonas Bonn + + * font-viewer/font-thumbnailer.c: (main): initialize the type system. + Fixes hangs when thumbnailing (bug #572189) + 2009-02-09 Thomas H.P. Andersen * font-viewer/font-thumbnailer.c: diff --git a/font-viewer/font-thumbnailer.c b/font-viewer/font-thumbnailer.c index 61fa0ae0a..074a7f903 100644 --- a/font-viewer/font-thumbnailer.c +++ b/font-viewer/font-thumbnailer.c @@ -254,6 +254,8 @@ main(int argc, char **argv) setlocale (LC_ALL, ""); + g_type_init (); + context = g_option_context_new (NULL); g_option_context_add_main_entries (context, options, GETTEXT_PACKAGE); @@ -385,6 +387,6 @@ main(int argc, char **argv) g_strfreev (arguments); g_free (thumbstr); g_free (thumbstr_utf8); - + return rv; }