[gnote] Fix "editable" property
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Fix "editable" property
- Date: Sat, 7 Sep 2013 19:21:42 +0000 (UTC)
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]