Warning: test_create_widget is deprecated since 3.20.
This function wraps @new for widget types.
This testing infrastructure is phased out in favor of reftests.
It’ll automatically show all created non window widgets, also ref_sink them (to keep them alive across a running test) and set them up for destruction during the next test teardown phase.
widget_type |
a valid widget type. |
... |
value to set the first property to, followed by more name-value pairs, terminated by null |
first_property_name |
Name of first property to set or null |
a newly created widget. |