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
Thomas Funk wrote:
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 =
Thomas Funk t.f...@web.de writes:
So I guess the light higlighted row is an old display state.
It's not just the cursor thingie is it? Maybe set_cursor() and
scroll_to_cell() to start on the initial choice?
___
gtk-perl-list mailing list
Kevin Ryde use...@zip.com.au wrote:
It's not just the cursor thingie is it? Maybe set_cursor() and
scroll_to_cell() to start on the initial choice?
I tried
$treeselection-select_iter($treeiter);
$tree_view_object-set_cursor ($treepath, undef, FALSE);
but it ends in an endless loop with a seg
Dave Howorth dhowo...@mrc-lmb.cam.ac.uk wrote:
It sounds like you perhaps aren't allowing the program to process
events? After you call select_iter how is control passed back to the
event loop?
I don't know how to do it ... I red many tuts but I don't understand how to
implement this.
As the
Thomas Funk t.f...@web.de writes:
but it ends in an endless loop with a seg fault :-(
You'll have to stick it under the debugger, or post a complete
program ...
In which module can I find scroll_to_cell() ?
Another Gtk2::TreeView method.
--
Nobody knows nothing.
-- all you need to
Thomas Funk t.f...@web.de writes:
my $treeselection = set_treeview_row($treeview_object, Theme Manager);
$start_init = FALSE;
}
Oh, a set_cursor() under a cursor-changed might immediately recurse to
run cursor-changed again. Perhaps clear the $start_init before doing
the
Kevin Ryde use...@zip.com.au wrote:
Oh, a set_cursor() under a cursor-changed might immediately recurse to
run cursor-changed again. Perhaps clear the $start_init before doing
the set_cursor(). Assuming a set_cursor() is in fact what you want!
Are you sure you don't want to make the initial