1 /* 2 * 3 * Copyright (C) 2010-2011 Colomban Wendling <ban@herbesfolles.org> 4 * 5 * This program is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 * 18 */ 19 20 #ifndef H_GWH_KEYBINDINGS 21 #define H_GWH_KEYBINDINGS 22 23 #include <glib.h> 24 #include <gtk/gtk.h> 25 26 #include <geanyplugin.h> 27 #include <geany.h> 28 29 G_BEGIN_DECLS 30 31 32 enum { 33 GWH_KB_TOGGLE_INSPECTOR, 34 GWH_KB_SHOW_HIDE_SEPARATE_WINDOW, 35 GWH_KB_TOGGLE_BOOKMARK, 36 GWH_KB_COUNT 37 }; 38 39 40 G_GNUC_INTERNAL 41 void gwh_keybindings_init (void); 42 G_GNUC_INTERNAL 43 void gwh_keybindings_cleanup (void); 44 G_GNUC_INTERNAL 45 GeanyKeyGroup *gwh_keybindings_get_group (void); 46 G_GNUC_INTERNAL 47 gboolean gwh_keybindings_handle_event (GtkWidget *widget G_GNUC_UNUSED, 48 GdkEventKey *event, 49 gpointer data G_GNUC_UNUSED); 50 51 52 G_END_DECLS 53 54 #endif /* guard */ 55