Re: Start editing a GtkCellRendererText using F2
- From: Kristian Rietveld <kris imendio com>
- To: Andrew Smith <asmith15 littlesvr ca>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Start editing a GtkCellRendererText using F2
- Date: Mon, 10 Sep 2007 14:33:49 +0200
On Sun, Sep 09, 2007 at 11:57:07PM -0400, Andrew Smith wrote:
I can do
gtk_accelerator_parse()/g_cclosure_new()/gtk_accel_group_connect() to
have a callback called when F2 is pressed but I've no idea how to tell
the callback to edit the selected cell.
You can use one of gtk_tree_view_set_cursor() or
gtk_tree_view_set_cursor_on_cell() to get the tree view to start
editing. Be sure to set the start_editing parameter to TRUE. For the
path parameter it is best to pass in the current location of the key
navigation cursor which you can get using gtk_tree_view_get_cursor().
regards,
-kris.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]