I have a TreeStore that groups items into parent rows. Items from the Treestore can then be selected from a ComboBox.

The user shouldn’t be able to select the parent items, but GTK puts a selectable entry above its children in each cascading section.
I have tried using set_row_separator_func() to hide the parent rows, but it hides the expanding menu entry as well as the selectable cart.
The ComboBox is created with this code, and self.ObjectsList is shown on the left of the image:
self.gcombo = Gtk.ComboBox.new_with_model(self.objectsList)
renderer_text = Gtk.CellRendererText()
self.gcombo.pack_start(renderer_text, True)
self.gcombo.add_attribute(renderer_text, "text", 0)
self.gcombo.show()
Here’s a sample program that does what you want:
You set the renderer’s
sensitiveproperty toFalsein the parent rows andTruein the child rows. That way, the parent rows won’t be selectable.