mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
gtk: Sync properties from the sink to the widget upon widget creation
This commit is contained in:
parent
6bf6429bc1
commit
6b731584a5
2 changed files with 4 additions and 4 deletions
|
@ -169,10 +169,10 @@ gst_gtk_gl_sink_get_widget (GstGtkGLSink * gtk_sink)
|
||||||
gtk_sink->widget = (GtkGstGLWidget *) gtk_gst_gl_widget_new ();
|
gtk_sink->widget = (GtkGstGLWidget *) gtk_gst_gl_widget_new ();
|
||||||
gtk_sink->bind_force_aspect_ratio =
|
gtk_sink->bind_force_aspect_ratio =
|
||||||
g_object_bind_property (gtk_sink, "force-aspect-ratio", gtk_sink->widget,
|
g_object_bind_property (gtk_sink, "force-aspect-ratio", gtk_sink->widget,
|
||||||
"force-aspect-ratio", G_BINDING_BIDIRECTIONAL);
|
"force-aspect-ratio", G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);
|
||||||
gtk_sink->bind_pixel_aspect_ratio =
|
gtk_sink->bind_pixel_aspect_ratio =
|
||||||
g_object_bind_property (gtk_sink, "pixel-aspect-ratio", gtk_sink->widget,
|
g_object_bind_property (gtk_sink, "pixel-aspect-ratio", gtk_sink->widget,
|
||||||
"pixel-aspect-ratio", G_BINDING_BIDIRECTIONAL);
|
"pixel-aspect-ratio", G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);
|
||||||
|
|
||||||
/* Take the floating ref, otherwise the destruction of the container will
|
/* Take the floating ref, otherwise the destruction of the container will
|
||||||
* make this widget disapear possibly before we are done. */
|
* make this widget disapear possibly before we are done. */
|
||||||
|
|
|
@ -166,10 +166,10 @@ gst_gtk_sink_get_widget (GstGtkSink * gtk_sink)
|
||||||
gtk_sink->widget = (GtkGstWidget *) gtk_gst_widget_new ();
|
gtk_sink->widget = (GtkGstWidget *) gtk_gst_widget_new ();
|
||||||
gtk_sink->bind_aspect_ratio =
|
gtk_sink->bind_aspect_ratio =
|
||||||
g_object_bind_property (gtk_sink, "force-aspect-ratio", gtk_sink->widget,
|
g_object_bind_property (gtk_sink, "force-aspect-ratio", gtk_sink->widget,
|
||||||
"force-aspect-ratio", G_BINDING_BIDIRECTIONAL);
|
"force-aspect-ratio", G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);
|
||||||
gtk_sink->bind_pixel_aspect_ratio =
|
gtk_sink->bind_pixel_aspect_ratio =
|
||||||
g_object_bind_property (gtk_sink, "pixel-aspect-ratio", gtk_sink->widget,
|
g_object_bind_property (gtk_sink, "pixel-aspect-ratio", gtk_sink->widget,
|
||||||
"pixel-aspect-ratio", G_BINDING_BIDIRECTIONAL);
|
"pixel-aspect-ratio", G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);
|
||||||
|
|
||||||
/* Take the floating ref, other wise the destruction of the container will
|
/* Take the floating ref, other wise the destruction of the container will
|
||||||
* make this widget disapear possibly before we are done. */
|
* make this widget disapear possibly before we are done. */
|
||||||
|
|
Loading…
Reference in a new issue