[gnote] Change key constants in watchers.cpp



commit 8cd5fe331a9ac684d200d2cbf9656b834e77db83
Author: Aurimas Ä?ernius <aurisc4 gmail com>
Date:   Sun May 8 00:48:22 2011 +0300

    Change key constants in watchers.cpp
    
    Change GDK_ to GDK_KEY_.
    The former are not available in GTK 3.

 src/watchers.cpp |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/watchers.cpp b/src/watchers.cpp
index 1b5076f..a555157 100644
--- a/src/watchers.cpp
+++ b/src/watchers.cpp
@@ -1087,10 +1087,10 @@ namespace gnote {
     bool retval = false;
 
     switch (ev->keyval) {
-    case GDK_Shift_L:
-    case GDK_Shift_R:
-    case GDK_Control_L:
-    case GDK_Control_R:
+    case GDK_KEY_Shift_L:
+    case GDK_KEY_Shift_R:
+    case GDK_KEY_Control_L:
+    case GDK_KEY_Control_R:
     {
       // Control or Shift when hovering over a link
       // swiches to a bar cursor...
@@ -1102,8 +1102,8 @@ namespace gnote {
       win->set_cursor(s_normal_cursor);
       break;
     }
-    case GDK_Return:
-    case GDK_KP_Enter:
+    case GDK_KEY_Return:
+    case GDK_KEY_KP_Enter:
     {
       Gtk::TextIter iter = get_buffer()->get_iter_at_mark (get_buffer()->get_insert());
 
@@ -1134,10 +1134,10 @@ namespace gnote {
   {
     bool retval = false;
     switch (ev->keyval) {
-    case GDK_Shift_L:
-    case GDK_Shift_R:
-    case GDK_Control_L:
-    case GDK_Control_R:
+    case GDK_KEY_Shift_L:
+    case GDK_KEY_Shift_R:
+    case GDK_KEY_Control_L:
+    case GDK_KEY_Control_R:
     {
       if (!m_hovering_on_link)
         break;



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