pango: re-port pangocairo deprecation and compiler warning fixes from 0.10
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 8 Mar 2012 20:54:49 +0000 (20:54 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 8 Mar 2012 20:54:49 +0000 (20:54 +0000)
Wasn't applied because that code is in the new private base class.

ext/pango/gstbasetextoverlay.c

index 1c19c3b..c6e02bb 100644 (file)
@@ -390,7 +390,7 @@ gst_base_text_overlay_base_init (gpointer g_class)
     g_mutex_lock (klass->pango_lock);
   fontmap = pango_cairo_font_map_get_default ();
   klass->pango_context =
-      pango_cairo_font_map_create_context (PANGO_CAIRO_FONT_MAP (fontmap));
+      pango_font_map_create_context (PANGO_FONT_MAP (fontmap));
   if (klass->pango_lock)
     g_mutex_unlock (klass->pango_lock);
 }
@@ -734,7 +734,8 @@ gst_base_text_overlay_update_render_mode (GstBaseTextOverlay * overlay)
   } else {
     pango_context_set_base_gravity (context, PANGO_GRAVITY_SOUTH);
     pango_context_set_matrix (context, &matrix);
-    pango_layout_set_alignment (overlay->layout, overlay->line_align);
+    pango_layout_set_alignment (overlay->layout,
+        (PangoAlignment) overlay->line_align);
   }
 }