Use focus_vadj for list view

This commit is contained in:
Alexander Larsson 2012-05-11 15:52:39 +02:00
parent 7600e8f1d2
commit e6ec0e8b4a
2 changed files with 3 additions and 0 deletions

View file

@ -222,6 +222,7 @@ public class Contacts.LinkDialog : Dialog {
scrolled.set_shadow_type (ShadowType.NONE);
scrolled.add_with_viewport (view);
list_grid.add (scrolled);
view.set_focus_vadjustment (scrolled.get_vadjustment ());
view.selection_changed.connect ( (c) => {
selected_contact = c;

View file

@ -138,6 +138,8 @@ public class Contacts.ListPane : Frame {
grid.set_orientation (Orientation.VERTICAL);
this.add (grid);
contacts_view.set_focus_vadjustment (scrolled.get_vadjustment ());
contacts_view.selection_changed.connect( (l, contact) => {
if (!ignore_selection_change)
selection_changed (contact);