[totem] main: Separate GActionEntries based on menu
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Separate GActionEntries based on menu
- Date: Fri, 10 May 2013 16:15:29 +0000 (UTC)
commit 214b45286e5d905945712da9609089149f626e7e
Author: Bastien Nocera <hadess hadess net>
Date: Fri May 10 17:33:17 2013 +0200
main: Separate GActionEntries based on menu
src/totem-menu.c | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/src/totem-menu.c b/src/totem-menu.c
index 28bc93f..b03d8a0 100644
--- a/src/totem-menu.c
+++ b/src/totem-menu.c
@@ -228,22 +228,27 @@ next_angle_action_cb (GSimpleAction *action,
}
static GActionEntry app_entries[] = {
+ /* Main app menu */
{ "open", open_action_cb, NULL, NULL, NULL },
{ "open-location", open_location_action_cb, NULL, NULL, NULL },
{ "fullscreen", toggle_action_cb, NULL, "false", fullscreen_change_state },
+ { "preferences", preferences_action_cb, NULL, NULL, NULL },
+ { "shuffle", toggle_action_cb, NULL, "false", shuffle_change_state },
+ { "repeat", toggle_action_cb, NULL, "false", repeat_change_state },
+ { "help", help_action_cb, NULL, NULL, NULL },
+ { "quit", quit_action_cb, NULL, NULL, NULL },
+
+ /* "Go" menu */
{ "dvd-root-menu", dvd_root_menu_action_cb, NULL, NULL, NULL },
{ "dvd-title-menu", dvd_title_menu_action_cb, NULL, NULL, NULL },
{ "dvd-audio-menu", dvd_audio_menu_action_cb, NULL, NULL, NULL },
{ "dvd-angle-menu", dvd_angle_menu_action_cb, NULL, NULL, NULL },
{ "dvd-chapter-menu", dvd_chapter_menu_action_cb, NULL, NULL, NULL },
+
+ /* Cogwheel menu */
{ "aspect-ratio", aspect_ratio_action_cb, "i", "0", aspect_ratio_change_state },
{ "zoom", toggle_action_cb, NULL, "false", zoom_action_change_state },
{ "next-angle", next_angle_action_cb, NULL, NULL, NULL },
- { "preferences", preferences_action_cb, NULL, NULL, NULL },
- { "shuffle", toggle_action_cb, NULL, "false", shuffle_change_state },
- { "repeat", toggle_action_cb, NULL, "false", repeat_change_state },
- { "help", help_action_cb, NULL, NULL, NULL },
- { "quit", quit_action_cb, NULL, NULL, NULL },
};
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]