1 /* 2 * Nautilus-Actions 3 * A Nautilus extension which offers configurable context menu actions. 4 * 5 * Copyright (C) 2005 The GNOME Foundation 6 * Copyright (C) 2006-2008 Frederic Ruaudel and others (see AUTHORS) 7 * Copyright (C) 2009-2014 Pierre Wieser and others (see AUTHORS) 8 * 9 * Nautilus-Actions is free software; you can redistribute it and/or 10 * modify it under the terms of the GNU General Public License as 11 * published by the Free Software Foundation; either version 2 of 12 * the License, or (at your option) any later version. 13 * 14 * Nautilus-Actions is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 * General Public License for more details. 18 * 19 * You should have received a copy of the GNU General Public License 20 * along with Nautilus-Actions; see the file COPYING. If not, see 21 * <http://www.gnu.org/licenses/>. 22 * 23 * Authors: 24 * Frederic Ruaudel <grumz@grumz.net> 25 * Rodrigo Moya <rodrigo@gnome-db.org> 26 * Pierre Wieser <pwieser@trychlos.org> 27 * ... and many others (see AUTHORS) 28 */ 29 30 #ifndef __BASE_KEYSYMS_H__ 31 #define __BASE_KEYSYMS_H__ 32 33 /** 34 * SECTION: base_window 35 * @short_description: #BaseWindow public function declaration. 36 * @include: nact/base-window.h 37 * 38 * This is a base class which encapsulates a Gtk+ windows. 39 * It works together with the BaseApplication class to run a Gtk+ 40 * application. 41 */ 42 43 #include <gtk/gtk.h> 44 #include <gdk/gdkkeysyms.h> 45 46 G_BEGIN_DECLS 47 48 /* GDK_KEY_ defines have been defined since Gtk+ 2.21.8 released on 2010-09-14 49 * see http://git.gnome.org/browse/gtk+/commit/?id=750c81f43dda6c783372b983e630ecd30b776d7e 50 */ 51 #if GTK_CHECK_VERSION( 2, 21, 8 ) 52 53 #define NACT_KEY_Escape (GDK_KEY_Escape) 54 #define NACT_KEY_Insert (GDK_KEY_Insert) 55 #define NACT_KEY_Delete (GDK_KEY_Delete) 56 #define NACT_KEY_Return (GDK_KEY_Return) 57 #define NACT_KEY_KP_Delete (GDK_KEY_KP_Delete) 58 #define NACT_KEY_KP_Enter (GDK_KEY_KP_Enter) 59 #define NACT_KEY_KP_Insert (GDK_KEY_KP_Insert) 60 #define NACT_KEY_Left (GDK_KEY_Left) 61 #define NACT_KEY_Right (GDK_KEY_Right) 62 #define NACT_KEY_F2 (GDK_KEY_F2) 63 64 #else 65 66 #define NACT_KEY_Escape (GDK_Escape) 67 #define NACT_KEY_Insert (GDK_Insert) 68 #define NACT_KEY_Delete (GDK_Delete) 69 #define NACT_KEY_Return (GDK_Return) 70 #define NACT_KEY_KP_Delete (GDK_KP_Delete) 71 #define NACT_KEY_KP_Enter (GDK_KP_Enter) 72 #define NACT_KEY_KP_Insert (GDK_KP_Insert) 73 #define NACT_KEY_Left (GDK_Left) 74 #define NACT_KEY_Right (GDK_Right) 75 #define NACT_KEY_F2 (GDK_F2) 76 77 #endif 78 79 G_END_DECLS 80 81 #endif /* __BASE_KEYSYMS_H__ */ 82