basetextoverlay: make deltax and deltay properties controllable
authorClaudiu Florin Lazar <lazar.claudiu.florin@gmail.com>
Tue, 26 May 2015 10:11:00 +0000 (13:11 +0300)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 26 May 2015 08:24:16 +0000 (09:24 +0100)
This will be more useful once we have absolute direct
control bindings.

https://bugzilla.gnome.org/show_bug.cgi?id=749824

ext/pango/gstbasetextoverlay.c

index a8d82d0c2b82c08c7c390f549a53c8c7d1c0081c..e76e2d21fa1c5eeeef7a5a29ed23deacad87f399 100644 (file)
@@ -377,11 +377,12 @@ gst_base_text_overlay_class_init (GstBaseTextOverlayClass * klass)
       g_param_spec_int ("deltax", "X position modifier",
           "Shift X position to the left or to the right. Unit is pixels.",
           G_MININT, G_MAXINT, DEFAULT_PROP_DELTAX,
-          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+          GST_PARAM_CONTROLLABLE | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_DELTAY,
       g_param_spec_int ("deltay", "Y position modifier",
           "Shift Y position up or down. Unit is pixels.", G_MININT, G_MAXINT,
-          DEFAULT_PROP_DELTAY, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+          GST_PARAM_CONTROLLABLE | DEFAULT_PROP_DELTAY,
+          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   /**
    * GstBaseTextOverlay:xpos:
    *