[tomboy/autosync: 1/241] Add Note.Enabled to (de)sensitize note windows.
- From: Sanford Armstrong <sharm src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tomboy/autosync: 1/241] Add Note.Enabled to (de)sensitize note windows.
- Date: Mon, 25 Jan 2010 19:37:15 +0000 (UTC)
commit b74d9c7a936d49abc0b977c47f495c36c2416634
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date: Sun Jun 7 08:27:27 2009 -0700
Add Note.Enabled to (de)sensitize note windows.
Tomboy/Note.cs | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/Tomboy/Note.cs b/Tomboy/Note.cs
index 117d9cb..a37baa3 100644
--- a/Tomboy/Note.cs
+++ b/Tomboy/Note.cs
@@ -353,6 +353,7 @@ namespace Tomboy
bool save_needed;
bool is_deleting;
+ bool enabled = true;
NoteManager manager;
NoteWindow window;
@@ -994,6 +995,16 @@ namespace Tomboy
}
}
+ public bool Enabled
+ {
+ get { return enabled; }
+ set {
+ enabled = value;
+ if (window != null)
+ window.Editor.Sensitive = enabled;
+ }
+ }
+
public NoteWindow Window
{
get {
@@ -1001,6 +1012,8 @@ namespace Tomboy
window = new NoteWindow (this);
window.Destroyed += WindowDestroyed;
window.ConfigureEvent += WindowConfigureEvent;
+ // TODO: What about a disabled set where you can still copy text?
+ window.Editor.Sensitive = Enabled;
if (data.Data.HasExtent ())
window.SetDefaultSize (data.Data.Width,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]