private void DisplayEditWidget()
{
if (propertyValueEventBox.Child != null)
{
propertyValueEventBox.Child.Destroy();
}
if (!editing)
{
editing = true;
}
Widget editWidget = editor.GetEditWidget();
propertyValueEventBox.Child = editWidget;
if (editWidget.SizeRequest().Width > 50)
{
editWidget.WidthRequest = 50;
//TODO: Display tooltip of full text when truncated
}
propertyValueEventBox.ShowAll();
editWidget.GrabFocus();
}