Revert the logic of the PangoContext check

The branch that creates the global PangoContext should only run
if there is no global PangoContext already.
This commit is contained in:
Emmanuele Bassi 2009-01-05 16:44:52 +00:00
parent 700b34148b
commit c79112bd3c

View File

@ -452,7 +452,7 @@ update_pango_context (ClutterBackend *backend,
PangoContext * PangoContext *
_clutter_context_get_pango_context (ClutterMainContext *self) _clutter_context_get_pango_context (ClutterMainContext *self)
{ {
if (G_LIKELY (self->pango_context)) if (G_UNLIKELY (self->pango_context == NULL))
{ {
PangoContext *context; PangoContext *context;