textrender: Use PROP_X instead of ARG_X consistently

This commit is contained in:
Sebastian Dröge 2009-08-04 11:45:01 +02:00
parent 8aa87c9153
commit d3baacc32a

View file

@ -65,13 +65,13 @@ GST_DEBUG_CATEGORY_EXTERN (pango_debug);
enum enum
{ {
ARG_0, PROP_0,
PROP_HALIGNMENT, PROP_HALIGNMENT,
PROP_VALIGNMENT, PROP_VALIGNMENT,
PROP_LINE_ALIGNMENT, PROP_LINE_ALIGNMENT,
PROP_XPAD, PROP_XPAD,
PROP_YPAD, PROP_YPAD,
ARG_FONT_DESC PROP_FONT_DESC
}; };
@ -194,7 +194,7 @@ gst_text_render_class_init (GstTextRenderClass * klass)
fontmap = pango_cairo_font_map_get_default (); fontmap = pango_cairo_font_map_get_default ();
klass->pango_context = klass->pango_context =
pango_cairo_font_map_create_context (PANGO_CAIRO_FONT_MAP (fontmap)); pango_cairo_font_map_create_context (PANGO_CAIRO_FONT_MAP (fontmap));
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_FONT_DESC, g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_FONT_DESC,
g_param_spec_string ("font-desc", "font description", g_param_spec_string ("font-desc", "font description",
"Pango font description of font " "Pango font description of font "
"to be used for rendering. " "to be used for rendering. "
@ -624,7 +624,7 @@ gst_text_render_set_property (GObject * object, guint prop_id,
case PROP_YPAD: case PROP_YPAD:
render->ypad = g_value_get_int (value); render->ypad = g_value_get_int (value);
break; break;
case ARG_FONT_DESC: case PROP_FONT_DESC:
{ {
PangoFontDescription *desc; PangoFontDescription *desc;