summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-08-22 12:41:49 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-08-22 12:41:49 +0000
commit4a7d5b9967ae340cd9f5f9660b60761a3f1c8976 (patch)
tree89af154329ea4e694dabdb02964d30b957130f93 /perl-install/interactive
parent882124af495e159068baa5b8af35f9cb23d46edc (diff)
downloaddrakx-4a7d5b9967ae340cd9f5f9660b60761a3f1c8976.tar
drakx-4a7d5b9967ae340cd9f5f9660b60761a3f1c8976.tar.gz
drakx-4a7d5b9967ae340cd9f5f9660b60761a3f1c8976.tar.bz2
drakx-4a7d5b9967ae340cd9f5f9660b60761a3f1c8976.tar.xz
drakx-4a7d5b9967ae340cd9f5f9660b60761a3f1c8976.zip
fix keyboard browsing in treeviews not always centering on
selected row (workaround gtk2 bug not honouring centering on the given row if node was closed by updating ui before requesting the scrolling to the cell)
Diffstat (limited to 'perl-install/interactive')
-rw-r--r--perl-install/interactive/gtk.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm
index 2031acafa..c320ac9e1 100644
--- a/perl-install/interactive/gtk.pm
+++ b/perl-install/interactive/gtk.pm
@@ -203,8 +203,8 @@ sub create_treeview_tree {
$tree->expand_to_path(Gtk2::TreePath->new_from_string($path_str));
my $path = Gtk2::TreePath->new_from_string($path_str);
$tree->set_cursor($path, undef, 0);
+ gtkflush(); #- workaround gtk2 bug not honouring centering on the given row if node was closed
$tree->scroll_to_cell($path, undef, 1, 0.5, 0);
-
};
my $curr = $tree_model->get_iter_first; #- default value