Creating a GtkComboBoxText triggers a warning about GtkContainer:child being deprecated
Steps to reproduce
Enable warnings with export G_ENABLE_DIAGNOSTIC=1
and run this simple Python program:
#!/usr/bin/python3
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk # noqa: E402
dialog = Gtk.Dialog(title="Example")
combo = Gtk.ComboBoxText()
combo.append_text("very")
combo.append_text("nice")
dialog.get_content_area().add(combo)
dialog.show_all()
dialog.run()
Current behavior
/home/mg/tmp/combobug2.py:8: Warning: The property GtkContainer:child is deprecated and shouldn't be used anymore. It will be removed in a future version.
combo = Gtk.ComboBoxText()
Expected outcome
No warning.
Version information
GTK 3.24.8 from Ubuntu 19.04