Re: Get Iter/Path from CellRendererCombo

On 02/10/2010, Mike Martin <redtux1 gmail com> wrote:
I think we may have crossed as that is more or less what I have done

my $rend_iter=$_[2]; # iter of selected item
                        my $id=$row_ref->[1];
                        my ($cell, $text_path, $val) = @_;
print $valid,"\t",$val,"\n";#$valid is column 0, $val is column1
                                        $modeltable->set (
                                                $modeltable->get_iter_from_string ($text_path),
                                                5, $val
#                       $dbh->do("update titles set category='$val' where id='$id'");

On 02/10/2010, Tadej BorovÅak <tadeboro gmail com> wrote:

There is no such thing as "currently active iter" when it comes to
GtkCellRendererCombo. Cell renderers do not retain any permanent state
as they render more than one cell.

Another approach would be to connect to GtkCellRendererCombo::changed
signal and store selected path into main model.


Tadej BorovÅak
tadeboro gmail com
tadej borovsak gmail com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]