Revert the logic of the PangoContext check
authorEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 5 Jan 2009 16:44:52 +0000 (16:44 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 5 Jan 2009 16:44:52 +0000 (16:44 +0000)
The branch that creates the global PangoContext should only run
if there is no global PangoContext already.

clutter/clutter-main.c

index 588b00a..12bef38 100644 (file)
@@ -452,7 +452,7 @@ update_pango_context (ClutterBackend *backend,
 PangoContext *
 _clutter_context_get_pango_context (ClutterMainContext *self)
 {
-  if (G_LIKELY (self->pango_context))
+  if (G_UNLIKELY (self->pango_context == NULL))
     {
       PangoContext *context;