unset default row in a treeview (treesort)
- From: "Thomas Funk" <t funk web de>
- To: gtk-perl-list gnome org
- Subject: unset default row in a treeview (treesort)
- Date: Mon, 15 Nov 2010 13:30:25 +0100 (CET)
Hi to all,
I try to set the active row in a treeview(treesort) to another row than 0. This works but the row 0 is always
highlighted (light).
Here's my code:
my $row_path = $theme_center_list_real_hash{$row_name}; # e.g "4:2"
my $tree_model = $tree_view_object->get_model();
my $treeiter = $tree_model->get_iter_from_string($row_path);
my $treepath = $tree_model->get_path ($treeiter);
my $treeselection = $tree_view_object->get_selection();
$treeselection->select_iter($treeiter);
If I printout the path list with
@paths = $treeselection->get_selected_rows;
only the selected row I want is listed. So I guess the light higlighted row is an old display state.
How can I clear this "state"?
After clicking to another row it will be cleared but at the beginning when the program starts it looks
unpleasantly.
Thanks in advance,
Thomas
___________________________________________________________
GRATIS! Movie-FLAT mit Ãber 300 Videos.
Jetzt freischalten unter http://movieflat.web.de
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]