Use focus_vadj for list view
This commit is contained in:
parent
7600e8f1d2
commit
e6ec0e8b4a
2 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue