Embedded editing of a GtkListItem Text

Is there any example how i do the embedded editing inside a GtkListView?

I tried replacing the GtkLabel in the bind function with an GtkEditableLabel. While this seem to work in theory, there are so many small bugs that it is not production ready. Like no horizontal scrolling , drawing bugs. So maybe i have missed some little things in the setup.

Also this would make it impossible to have some features that GtkLabel offers me, like ellipse mode and using markup in the label text.

I don’t know the ‘state of the art’ here, but you could consider using a Stack that contains the Label (perhaps inside a flat Button for ease of input) for viewing purposes, and switches to a GtkText or Entry when clicked for editing.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.