rem: GtkWidget *widget = GTK_WIDGET (vw);  gdk_threads_enter ();  vw->priv->logo_focused = FALSE;  if (GDK_IS_WINDOW(vw->priv->video_window)) { gdk_window_destroy (vw->priv->video_window); vw->priv->video_window = NULL; }  vw->priv->video_window = gdk_window_foreign_new (xid);  if (vw->priv->video_window) { gint video_x, video_y, video_width, video_height, video_depth;  gdk_window_reparent (vw->priv->video_window, widget->window, 0, 0);  gdk_window_show (vw->priv->video_window);  gdk_window_get_geometry (	vw->priv->video_window, &video_x, &video_y, &video_width, &video_height, &video_depth);  vw->priv->source_width = video_width; vw->priv->source_height = video_height;  if (vw->priv->event_catcher) gdk_window_raise (vw->priv->event_window);  vw->priv->xembed_xid = xid;  gtk_widget_queue_resize (GTK_WIDGET(vw));
add: GtkWidget *widget = GTK_WIDGET (vw);
context: gst_video_widget_set_xembed_xid (GstVideoWidget *vw, gulong xid){	GtkWidget *widget = GTK_WIDGET (vw);		gdk_threads_enter ();			vw->priv->logo_focused = FALSE;		if (GDK_IS_WINDOW(vw->priv->video_window)) {		gdk_window_destroy (vw->priv->video_window);		vw->priv->video_window = NULL;	}		vw->priv->video_window = gdk_window_foreign_new (xid);		if (vw->priv->video_window) {		gint video_x, video_y, video_width, video_height, video_depth;				gdk_window_reparent (vw->priv->video_window, widget->window, 0, 0);				gdk_window_show (vw->priv->video_window);				gdk_window_get_geometry (	vw->priv->video_window,									&video_x, &video_y,									&video_width, &video_height, &video_depth);				vw->priv->source_width = video_width;		vw->priv->source_height = video_height;				if (vw->priv->event_catcher)			gdk_window_raise (vw->priv->event_window);			vw->priv->xembed_xid = xid;				gtk_widget_queue_resize (GTK_WIDGET(vw));	}	else		g_warning ("Trying to embed a window which has been destroyed");		gdk_threads_leave ();}