[smuxi/stable] Frontend-GNOME: allow wrapping to first/last from last/first chat
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi/stable] Frontend-GNOME: allow wrapping to first/last from last/first chat
- Date: Wed, 25 Dec 2013 23:34:19 +0000 (UTC)
commit 953b7e8ab4a4bf1fac2030ccd4c20155fa2e5754
Author: Mirco Bauer <meebey meebey net>
Date: Sun Dec 22 21:54:53 2013 +0100
Frontend-GNOME: allow wrapping to first/last from last/first chat
This restores the behavior of with tabs which allowed wrapping from the last tab
to the first tab and from the last tab to the first tab.
src/Frontend-GNOME/ChatViewManager.cs | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/Frontend-GNOME/ChatViewManager.cs b/src/Frontend-GNOME/ChatViewManager.cs
index 4da44b9..afae62a 100644
--- a/src/Frontend-GNOME/ChatViewManager.cs
+++ b/src/Frontend-GNOME/ChatViewManager.cs
@@ -77,6 +77,12 @@ namespace Smuxi.Frontend.Gnome
return TreeView.CurrentChatNumber;
}
set {
+ if (value >= f_Chats.Count) {
+ value = 0;
+ }
+ if (value < 0) {
+ value = f_Chats.Count - 1;
+ }
TreeView.CurrentChatNumber = value;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]