[gnote] Change key constants in eggaccelerators.c



commit 96c6557a417c8a44c706ea398780ca8eee79f6e1
Author: Aurimas Ä?ernius <aurisc4 gmail com>
Date:   Sun May 8 00:13:36 2011 +0300

    Change key constants in eggaccelerators.c
    
    Change GDK_ contants to GDK_KEY_ alternatives.
    The former ones are not available in GTK 3.

 libtomboy/eggaccelerators.c |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/libtomboy/eggaccelerators.c b/libtomboy/eggaccelerators.c
index 5410259..5723848 100644
--- a/libtomboy/eggaccelerators.c
+++ b/libtomboy/eggaccelerators.c
@@ -1,4 +1,5 @@
 /* eggaccelerators.c
+ * Copyright (C) 2011 Aurimas Cernius
  * Copyright (C) 2002  Red Hat, Inc.; Copyright 1998, 2001 Tim Janik
  * Developed by Havoc Pennington, Tim Janik
  *
@@ -578,20 +579,20 @@ reload_modmap (GdkKeymap *keymap,
       j = 0;
       while (j < n_entries)
         {          
-          if (keyvals[j] == GDK_Num_Lock)
+          if (keyvals[j] == GDK_KEY_Num_Lock)
             mask |= EGG_VIRTUAL_NUM_LOCK_MASK;
-          else if (keyvals[j] == GDK_Scroll_Lock)
+          else if (keyvals[j] == GDK_KEY_Scroll_Lock)
             mask |= EGG_VIRTUAL_SCROLL_LOCK_MASK;
-          else if (keyvals[j] == GDK_Meta_L ||
-                   keyvals[j] == GDK_Meta_R)
+          else if (keyvals[j] == GDK_KEY_Meta_L ||
+                   keyvals[j] == GDK_KEY_Meta_R)
             mask |= EGG_VIRTUAL_META_MASK;
-          else if (keyvals[j] == GDK_Hyper_L ||
-                   keyvals[j] == GDK_Hyper_R)
+          else if (keyvals[j] == GDK_KEY_Hyper_L ||
+                   keyvals[j] == GDK_KEY_Hyper_R)
             mask |= EGG_VIRTUAL_HYPER_MASK;
-          else if (keyvals[j] == GDK_Super_L ||
-                   keyvals[j] == GDK_Super_R)
+          else if (keyvals[j] == GDK_KEY_Super_L ||
+                   keyvals[j] == GDK_KEY_Super_R)
             mask |= EGG_VIRTUAL_SUPER_MASK;
-          else if (keyvals[j] == GDK_Mode_switch)
+          else if (keyvals[j] == GDK_KEY_Mode_switch)
             mask |= EGG_VIRTUAL_MODE_SWITCH_MASK;
           
           ++j;



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