[Gtk-sharp-list] Start editing with one click in a TreeView

Florian Roth rothflorian at gmx.de
Mon Mar 31 15:42:26 EDT 2008


I'm currently working with a TreeView which has three colums. The last column is editable and uses a CellRendererText therefor. Now I want to make this cell column to start editing as soon as i click on it. I already tried severals things. First a tried to use a ButtonPress event an then somehow toggle the editing. This didn't work because no ButtonPress events were recieved. Then I tried it with the OnCursorChanged method of the tree view. This event works and I even can check which column the user clicked on with the GetCursor(out path, out column) method. But I have absolutly no idea how to start the editing now. I played around with the Activate method of the renderer, but this didn't work.
I hope someone here can help me.

Florian Roth
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf@gmx

More information about the Gtk-sharp-list mailing list