1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ 2 3 /* 4 * Goo 5 * 6 * Copyright (C) 2013 Free Software Foundation, Inc. 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2 of the License, or 11 * (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; if not, see <http://www.gnu.org/licenses/>. 20 */ 21 22 #ifndef GOO_WINDOW_ACTIONS_ENTRIES_H 23 #define GOO_WINDOW_ACTIONS_ENTRIES_H 24 25 #include <config.h> 26 #include "gtk-utils.h" 27 #include "goo-window-actions-callbacks.h" 28 29 30 static const GActionEntry goo_window_actions[] = { 31 { "play", goo_window_activate_play }, 32 { "play-selected", goo_window_activate_play_selected }, 33 { "pause", goo_window_activate_pause }, 34 { "toggle-play", goo_window_activate_toggle_play }, 35 { "stop", goo_window_activate_stop }, 36 { "next-track", goo_window_activate_next_track }, 37 { "previous-track", goo_window_activate_previous_track }, 38 { "eject", goo_window_activate_eject }, 39 { "reload", goo_window_activate_reload }, 40 { "close", goo_window_activate_close }, 41 { "play-all", goo_window_activate_play_all }, 42 { "repeat", goo_window_activate_repeat }, 43 { "shuffle", goo_window_activate_shuffle }, 44 { "copy-disc", goo_window_activate_copy_disc }, 45 { "extract", goo_window_activate_extract }, 46 { "extract-selected", goo_window_activate_extract_selected }, 47 { "preferences", goo_window_activate_preferences }, 48 { "pick-cover-from-disk", goo_window_activate_pick_cover_from_disk }, 49 { "search-cover", goo_window_activate_search_cover }, 50 { "remove-cover", goo_window_activate_remove_cover }, 51 { "toggle-visibility", goo_window_activate_toggle_visibility }, 52 { "properties", goo_window_activate_properties } 53 }; 54 55 56 static const _GtkAccelerator goo_window_accelerators[] = { 57 { "close", "<Control>w" }, 58 { "toggle-play", "space" }, 59 { "stop", "Escape" }, 60 { "next-track", "n" }, 61 { "previous-track", "p" }, 62 { "eject", "j" }, 63 { "extract", "e" }, 64 { "close", "<Control>w" }, 65 { "properties", "<Control>Return" } 66 }; 67 68 69 #endif /* GOO_WINDOW_ACTIONS_ENTRIES_H */ 70