[gnote] Change key constants in notetag.cpp
- From: Aurimas ÄŚernius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Change key constants in notetag.cpp
- Date: Sun, 8 May 2011 11:38:26 +0000 (UTC)
commit c6a892dac1a57f880aab9cf6484afe80709418c6
Author: Aurimas Ä?ernius <aurisc4 gmail com>
Date: Sun May 8 00:32:38 2011 +0300
Change key constants in notetag.cpp
Change GDK_ to GDK_KEY_.
The former are not available in GTK 3.
src/notetag.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/notetag.cpp b/src/notetag.cpp
index a3572e5..4251339 100644
--- a/src/notetag.cpp
+++ b/src/notetag.cpp
@@ -226,8 +226,8 @@ namespace gnote {
if ((key_ev->state & Gdk::CONTROL_MASK) == 0)
return false;
- if (key_ev->keyval != GDK_Return &&
- key_ev->keyval != GDK_KP_Enter)
+ if (key_ev->keyval != GDK_KEY_Return &&
+ key_ev->keyval != GDK_KEY_KP_Enter)
return false;
get_extents (iter, start, end);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]