Lines Matching refs:widget
175 if (gtk_sink->widget && gtk_sink->widget_destroy_id) in gst_gtk_base_sink_finalize()
176 g_signal_handler_disconnect (gtk_sink->widget, gtk_sink->widget_destroy_id); in gst_gtk_base_sink_finalize()
178 g_clear_object (>k_sink->widget); in gst_gtk_base_sink_finalize()
185 widget_destroy_cb (GtkWidget * widget, GstGtkBaseSink * gtk_sink) in widget_destroy_cb() argument
188 g_clear_object (>k_sink->widget); in widget_destroy_cb()
193 window_destroy_cb (GtkWidget * widget, GstGtkBaseSink * gtk_sink) in window_destroy_cb() argument
203 if (gtk_sink->widget != NULL) in gst_gtk_base_sink_get_widget()
204 return g_object_ref (gtk_sink->widget); in gst_gtk_base_sink_get_widget()
214 gtk_sink->widget = (GtkGstBaseWidget *) in gst_gtk_base_sink_get_widget()
218 g_object_bind_property (gtk_sink, "force-aspect-ratio", gtk_sink->widget, in gst_gtk_base_sink_get_widget()
221 g_object_bind_property (gtk_sink, "pixel-aspect-ratio", gtk_sink->widget, in gst_gtk_base_sink_get_widget()
225 gtk_sink->widget, "video-aspect-ratio-override", in gst_gtk_base_sink_get_widget()
228 g_object_bind_property (gtk_sink, "ignore-alpha", gtk_sink->widget, in gst_gtk_base_sink_get_widget()
233 gst_object_ref_sink (gtk_sink->widget); in gst_gtk_base_sink_get_widget()
234 gtk_sink->widget_destroy_id = g_signal_connect (gtk_sink->widget, "destroy", in gst_gtk_base_sink_get_widget()
238 gtk_gst_base_widget_set_element (GTK_GST_BASE_WIDGET (gtk_sink->widget), in gst_gtk_base_sink_get_widget()
241 return g_object_ref (gtk_sink->widget); in gst_gtk_base_sink_get_widget()
247 gpointer widget = NULL; in gst_gtk_base_sink_acquire_widget() local
250 if (gtk_sink->widget != NULL) in gst_gtk_base_sink_acquire_widget()
251 widget = g_object_ref (gtk_sink->widget); in gst_gtk_base_sink_acquire_widget()
254 if (!widget) in gst_gtk_base_sink_acquire_widget()
255 widget = in gst_gtk_base_sink_acquire_widget()
259 return widget; in gst_gtk_base_sink_acquire_widget()
331 GtkGstBaseWidget *widget = gst_gtk_base_sink_get_widget (sink); in gst_gtk_base_sink_navigation_send_event() local
334 if (widget == NULL) { in gst_gtk_base_sink_navigation_send_event()
339 gtk_gst_base_widget_display_size_to_stream_size (widget, in gst_gtk_base_sink_navigation_send_event()
383 toplevel = gtk_widget_get_toplevel (GTK_WIDGET (gst_sink->widget)); in gst_gtk_base_sink_start_on_main()
416 gst_sink->widget = NULL; in gst_gtk_base_sink_stop_on_main()
435 gst_gtk_widget_show_all_and_unref (GtkWidget * widget) in gst_gtk_widget_show_all_and_unref() argument
437 gtk_widget_show_all (widget); in gst_gtk_widget_show_all_and_unref()
438 g_object_unref (widget); in gst_gtk_widget_show_all_and_unref()
473 if (gtk_sink->widget) in gst_gtk_base_sink_change_state()
474 gtk_gst_base_widget_set_buffer (gtk_sink->widget, NULL); in gst_gtk_base_sink_change_state()
519 if (gtk_sink->widget == NULL) { in gst_gtk_base_sink_set_caps()
526 if (!gtk_gst_base_widget_set_format (gtk_sink->widget, >k_sink->v_info)) { in gst_gtk_base_sink_set_caps()
546 if (gtk_sink->widget == NULL) { in gst_gtk_base_sink_show_frame()
553 gtk_gst_base_widget_set_buffer (gtk_sink->widget, buf); in gst_gtk_base_sink_show_frame()