I'm trying to show a GtkFileChooserDialog
when a GtkTreeView
column that contains paths is edited.
I've come up with 2 possible ways to implement this:
- Hook the
"editing-started"
signal on theGtkCellRendererText
that shows the path. However this still requires that the "editing" be done inside the cell. I can't show a dialog and then cancel the usual editing process. - Add a "..." button into the column. Catch
"clicked"
signals on the button, and use this to show the dialog. However onlyGtkCellRenderer
s can be added to a column, so I have no idea how to implement this.
How should I proceed? What's the standard method to edit paths in a GtkTreeView
?