[gnome-contacts/wip/sorted] Stop in list at ends
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts/wip/sorted] Stop in list at ends
- Date: Mon, 14 May 2012 15:21:02 +0000 (UTC)
commit bb54cc89a6e344aa2f9816d923f3a87b63e9fc6e
Author: Alexander Larsson <alexl redhat com>
Date: Mon May 14 16:30:19 2012 +0200
Stop in list at ends
src/contacts-sorted.vala | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/contacts-sorted.vala b/src/contacts-sorted.vala
index adfca42..70e0a85 100644
--- a/src/contacts-sorted.vala
+++ b/src/contacts-sorted.vala
@@ -458,8 +458,14 @@ public class Contacts.Sorted : Container {
}
}
- if (next_focus_child == null)
+ if (next_focus_child == null) {
+ if (direction == DirectionType.UP || direction == DirectionType.DOWN) {
+ error_bell ();
+ return true;
+ }
+
return false;
+ }
bool modify_selection_pressed = false;
Gdk.ModifierType state;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]