Improve warning message.
authorBehdad Esfahbod <behdad@gnome.org>
Thu, 8 Jan 2009 07:00:52 +0000 (07:00 +0000)
committerBehdad Esfahbod <behdad@src.gnome.org>
Thu, 8 Jan 2009 07:00:52 +0000 (07:00 +0000)
2009-01-08  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pango-context.c (itemize_state_process_run):
        Improve warning message.

svn path=/trunk/; revision=2796

ChangeLog
pango/pango-context.c

index b673b50..1a8e361 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-01-08  Behdad Esfahbod  <behdad@gnome.org>
 
+       * pango/pango-context.c (itemize_state_process_run):
+       Improve warning message.
+
+2009-01-08  Behdad Esfahbod  <behdad@gnome.org>
+
        Bug 549532 – Correction to the sample string for Hindi in
        pango-language-sample-table.h
 
index 95916eb..208952d 100644 (file)
@@ -1384,16 +1384,7 @@ itemize_state_process_run (ItemizeState *state)
 
          if (!g_object_get_data (G_OBJECT (fontmap), script_name))
            {
-             const char *what;
-             if (shape_engine == NULL)
-               what = "shape engine";
-             else if (font == NULL)
-               what = "font";
-             else
-               what = "nothing (oops!)";
-              
-             g_warning ("failed to find %s, expect ugly output. engine-type='%s', script='%s'",
-                        what,
+             g_warning ("failed to choose a font, expect ugly output. engine-type='%s', script='%s'",
                         pango_font_map_get_shape_engine_type (fontmap),
                         script_name);