[gnote] Fix "editable" property



commit ecc4904472ea8ca564a39f33be29ad08b478a442
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sat Sep 7 22:11:21 2013 +0300

    Fix "editable" property
    
    Check this property on key press.

 src/noteeditor.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/noteeditor.cpp b/src/noteeditor.cpp
index 9c86da5..e348a40 100644
--- a/src/noteeditor.cpp
+++ b/src/noteeditor.cpp
@@ -216,6 +216,9 @@ namespace gnote {
   bool NoteEditor::key_pressed (GdkEventKey * ev)
   {
       bool ret_value = false;
+      if(!get_editable()) {
+        return ret_value;
+      }
 
       switch (ev->keyval)
       {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]