CellRendererText editable
- From: Jens Wilke <jens wilke org>
- To: gtk-perl-list gnome org
- Subject: CellRendererText editable
- Date: Sun, 13 Apr 2003 00:14:53 +0200
Hi,
i'd like to make a treeview column editable:
$renderer = Gtk2::CellRendererText->new();
$renderer->set_property('editable', 1);
$column = Gtk2::TreeViewColumn->new_with_attributes('EP', $renderer, 'text',
COL_BT);
$column->set_resizable(1);
$btreeview->append_column($column);
I get an entry field in the cell, where to type some stuff.
This stuff is blown away, when leaving the cell and it's empty again.
Besides there're some nice error messages (see below) when building the model
and/or the treeview. I guess this is caused by the editable, because without
it works fine.
Is there s'thing wrong in my code, is there any working example out there?
The next step is, that i want to enter the next row's editable cell on
'edited', will this be possible?
Tx, Jens
(oava.pl:22481): GLib-GObject-CRITICAL **: file gvalue.c: line 147
(g_value_unset): assertion `G_IS_VALUE (value)' failed
(oava.pl:22481): Gtk-CRITICAL **: file gtkliststore.c: line 565
(gtk_list_store_get_value): assertion `column < GTK_LIST_STORE
(tree_model)->n_columns' failed
(oava.pl:22481): GLib-GObject-CRITICAL **: file gobject.c: line 1019
(g_object_set_property): assertion `G_IS_VALUE (value)' failed
(oava.pl:22481): GLib-GObject-CRITICAL **: file gvalue.c: line 147
(g_value_unset): assertion `G_IS_VALUE (value)' failed
(oava.pl:22481): Gtk-CRITICAL **: file gtkliststore.c: line 565
(gtk_list_store_get_value): assertion `column < GTK_LIST_STORE
(tree_model)->n_columns' failed
(oava.pl:22481): GLib-GObject-CRITICAL **: file gobject.c: line 1019
(g_object_set_property): assertion `G_IS_VALUE (value)' failed
(oava.pl:22481): GLib-GObject-CRITICAL **: file gvalue.c: line 147
(g_value_unset): assertion `G_IS_VALUE (value)' failed
(oava.pl:22481): Gtk-CRITICAL **: file gtkliststore.c: line 565
(gtk_list_store_get_value): assertion `column < GTK_LIST_STORE
(tree_model)->n_columns' failed
(oava.pl:22481): GLib-GObject-CRITICAL **: file gobject.c: line 1019
(g_object_set_property): assertion `G_IS_VALUE (value)' failed
(oava.pl:22481): GLib-GObject-CRITICAL **: file gvalue.c: line 147
(g_value_unset): assertion `G_IS_VALUE (value)' failed
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]