annotate audacious/ui_manager.c @ 2238:7b568c86b2a9 trunk

[svn] - fix sed
author nenolod
date Tue, 02 Jan 2007 22:04:44 -0800
parents d507d2c1f75c
children bb4d730fbcd0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2232
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
1 /* Audacious - Cross-platform multimedia player
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
2 * Copyright (C) 2005-2006 Audacious development team.
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
3 *
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
4 * This program is free software; you can redistribute it and/or modify
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
5 * it under the terms of the GNU General Public License as published by
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
6 * the Free Software Foundation; under version 2 of the License.
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
7 *
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
8 * This program is distributed in the hope that it will be useful,
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
11 * GNU General Public License for more details.
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
12 *
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
13 * You should have received a copy of the GNU General Public License
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
14 * along with this program; if not, write to the Free Software
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
16 */
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
17
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
18 #ifdef HAVE_CONFIG_H
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
19 # include "config.h"
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
20 #endif
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
21
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
22 #include "ui_manager.h"
2237
d507d2c1f75c [svn] - rename mainwin.c to ui_main.c and such
nenolod
parents: 2234
diff changeset
23 #include "actions-ui_main.h"
2232
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
24
2237
d507d2c1f75c [svn] - rename mainwin.c to ui_main.c and such
nenolod
parents: 2234
diff changeset
25 #include "ui_main.h"
2232
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
26 #include "icons-stock.h"
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
27 #include "widgets/widgetcore.h"
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
28
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
29
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
30 static GtkUIManager *ui_manager;
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
31
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
32
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
33 /* toggle action entries */
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
34
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
35 static GtkToggleActionEntry mainwin_toggleaction_entries_others[] = {
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
36
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
37 { "autoscroll songname", NULL , N_("Autoscroll Songname"), NULL,
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
38 N_("Autoscroll Songname"), G_CALLBACK(action_autoscroll_songname) , FALSE },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
39
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
40 { "stop after current song", NULL , N_("Stop after Current Song"), "<Ctrl>M",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
41 N_("Stop after Current Song"), G_CALLBACK(action_stop_after_current_song) , FALSE },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
42
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
43 { "anamode peaks", NULL , N_("Peaks"), NULL,
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
44 N_("Peaks"), G_CALLBACK(action_anamode_peaks) , FALSE },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
45
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
46 { "playback repeat", NULL , N_("Repeat"), "R",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
47 N_("Repeat"), G_CALLBACK(action_playback_repeat) , FALSE },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
48
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
49 { "playback shuffle", NULL , N_("Shuffle"), "S",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
50 N_("Shuffle"), G_CALLBACK(action_playback_shuffle) , FALSE },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
51
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
52 { "playback no playlist advance", NULL , N_("No Playlist Advance"), "<Ctrl>N",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
53 N_("No Playlist Advance"), G_CALLBACK(action_playback_noplaylistadvance) , FALSE },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
54
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
55 { "show player", NULL , N_("Show Player"), "<Alt>M",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
56 N_("Show Player"), G_CALLBACK(action_show_player) , FALSE },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
57
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
58 { "show playlist editor", NULL , N_("Show Playlist Editor"), "<Alt>E",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
59 N_("Show Playlist Editor"), G_CALLBACK(action_show_playlist_editor) , FALSE },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
60
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
61 { "show equalizer", NULL , N_("Show Equalizer"), "<Alt>G",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
62 N_("Show Equalizer"), G_CALLBACK(action_show_equalizer) , FALSE },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
63
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
64 { "view always on top", NULL , N_("Always on Top"), "<Ctrl>O",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
65 N_("Always on Top"), G_CALLBACK(action_view_always_on_top) , FALSE },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
66
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
67 { "view put on all workspaces", NULL , N_("Put on All Workspaces"), "<Ctrl>S",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
68 N_("Put on All Workspaces"), G_CALLBACK(action_view_on_all_workspaces) , FALSE },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
69
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
70 { "roll up player", NULL , N_("Roll up Player"), "<Ctrl>W",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
71 N_("Roll up Player"), G_CALLBACK(action_roll_up_player) , FALSE },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
72
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
73 { "roll up playlist editor", NULL , N_("Roll up Playlist Editor"), "<Shift><Ctrl>W",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
74 N_("Roll up Playlist Editor"), G_CALLBACK(action_roll_up_playlist_editor) , FALSE },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
75
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
76 { "roll up equalizer", NULL , N_("Roll up Equalizer"), "<Ctrl><Alt>W",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
77 N_("Roll up Equalizer"), G_CALLBACK(action_roll_up_equalizer) , FALSE },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
78
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
79 { "view doublesize", NULL , N_("DoubleSize"), "<Ctrl>D",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
80 N_("DoubleSize"), G_CALLBACK(action_view_doublesize) , FALSE },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
81
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
82 { "view easy move", NULL , N_("Easy Move"), "<Ctrl>E",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
83 N_("Easy Move"), G_CALLBACK(action_view_easymove) , FALSE }
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
84 };
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
85
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
86
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
87
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
88 /* radio action entries */
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
89
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
90 static GtkRadioActionEntry mainwin_radioaction_entries_vismode[] = {
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
91 { "vismode analyzer", NULL , N_("Analyzer"), NULL, N_("Analyzer"), VIS_ANALYZER },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
92 { "vismode scope", NULL , N_("Scope"), NULL, N_("Scope"), VIS_SCOPE },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
93 { "vismode voiceprint", NULL , N_("Voiceprint"), NULL, N_("Voiceprint"), VIS_VOICEPRINT },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
94 { "vismode off", NULL , N_("Off"), NULL, N_("Off"), VIS_OFF }
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
95 };
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
96
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
97 static GtkRadioActionEntry mainwin_radioaction_entries_anamode[] = {
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
98 { "anamode normal", NULL , N_("Normal"), NULL, N_("Normal"), ANALYZER_NORMAL },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
99 { "anamode fire", NULL , N_("Fire"), NULL, N_("Fire"), ANALYZER_FIRE },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
100 { "anamode vertical lines", NULL , N_("Vertical Lines"), NULL, N_("Vertical Lines"), ANALYZER_VLINES }
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
101 };
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
102
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
103 static GtkRadioActionEntry mainwin_radioaction_entries_anatype[] = {
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
104 { "anatype lines", NULL , N_("Lines"), NULL, N_("Lines"), ANALYZER_LINES },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
105 { "anatype bars", NULL , N_("Bars"), NULL, N_("Bars"), ANALYZER_BARS }
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
106 };
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
107
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
108 static GtkRadioActionEntry mainwin_radioaction_entries_scomode[] = {
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
109 { "scomode dot", NULL , N_("Dot Scope"), NULL, N_("Dot Scope"), SCOPE_DOT },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
110 { "scomode line", NULL , N_("Line Scope"), NULL, N_("Line Scope"), SCOPE_LINE },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
111 { "scomode solid", NULL , N_("Solid Scope"), NULL, N_("Solid Scope"), SCOPE_SOLID }
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
112 };
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
113
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
114 static GtkRadioActionEntry mainwin_radioaction_entries_vprmode[] = {
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
115 { "vprmode normal", NULL , N_("Normal"), NULL, N_("Normal"), VOICEPRINT_NORMAL },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
116 { "vprmode fire", NULL , N_("Fire"), NULL, N_("Fire"), VOICEPRINT_FIRE },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
117 { "vprmode ice", NULL , N_("Ice"), NULL, N_("Ice"), VOICEPRINT_ICE }
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
118 };
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
119
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
120 static GtkRadioActionEntry mainwin_radioaction_entries_wshmode[] = {
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
121 { "wshmode normal", NULL , N_("Normal"), NULL, N_("Normal"), VU_NORMAL },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
122 { "wshmode smooth", NULL , N_("Smooth"), NULL, N_("Smooth"), VU_SMOOTH }
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
123 };
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
124
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
125 static GtkRadioActionEntry mainwin_radioaction_entries_refrate[] = {
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
126 { "refrate full", NULL , N_("Full (~50 fps)"), NULL, N_("Full (~50 fps)"), REFRESH_FULL },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
127 { "refrate half", NULL , N_("Half (~25 fps)"), NULL, N_("Half (~25 fps)"), REFRESH_HALF },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
128 { "refrate quarter", NULL , N_("Quarter (~13 fps)"), NULL, N_("Quarter (~13 fps)"), REFRESH_QUARTER },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
129 { "refrate eighth", NULL , N_("Eighth (~6 fps)"), NULL, N_("Eighth (~6 fps)"), REFRESH_EIGTH }
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
130 };
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
131
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
132 static GtkRadioActionEntry mainwin_radioaction_entries_anafoff[] = {
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
133 { "anafoff slowest", NULL , N_("Slowest"), NULL, N_("Slowest"), FALLOFF_SLOWEST },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
134 { "anafoff slow", NULL , N_("Slow"), NULL, N_("Slow"), FALLOFF_SLOW },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
135 { "anafoff medium", NULL , N_("Medium"), NULL, N_("Medium"), FALLOFF_MEDIUM },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
136 { "anafoff fast", NULL , N_("Fast"), NULL, N_("Fast"), FALLOFF_FAST },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
137 { "anafoff fastest", NULL , N_("Fastest"), NULL, N_("Fastest"), FALLOFF_FASTEST }
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
138 };
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
139
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
140 static GtkRadioActionEntry mainwin_radioaction_entries_peafoff[] = {
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
141 { "peafoff slowest", NULL , N_("Slowest"), NULL, N_("Slowest"), FALLOFF_SLOWEST },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
142 { "peafoff slow", NULL , N_("Slow"), NULL, N_("Slow"), FALLOFF_SLOW },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
143 { "peafoff medium", NULL , N_("Medium"), NULL, N_("Medium"), FALLOFF_MEDIUM },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
144 { "peafoff fast", NULL , N_("Fast"), NULL, N_("Fast"), FALLOFF_FAST },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
145 { "peafoff fastest", NULL , N_("Fastest"), NULL, N_("Fastest"), FALLOFF_FASTEST }
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
146 };
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
147
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
148 static GtkRadioActionEntry mainwin_radioaction_entries_viewtime[] = {
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
149 { "view time elapsed", NULL , N_("Time Elapsed"), "<Ctrl>E", N_("Time Elapsed"), TIMER_ELAPSED },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
150 { "view time remaining", NULL , N_("Time Remaining"), "<Ctrl>R", N_("Time Remaining"), TIMER_REMAINING }
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
151 };
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
152
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
153
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
154
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
155 /* normal actions */
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
156
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
157 static GtkActionEntry mainwin_action_entries_playback[] = {
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
158
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
159 { "playback", NULL, "Playback" },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
160
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
161 { "playback play cd", GTK_STOCK_CDROM , N_("Play CD"), "<Alt>C",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
162 N_("Play CD"), G_CALLBACK(action_playback_playcd) },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
163
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
164 { "playback play", GTK_STOCK_MEDIA_PLAY , N_("Play"), "X",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
165 N_("Play"), G_CALLBACK(action_playback_play) },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
166
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
167 { "playback pause", GTK_STOCK_MEDIA_PAUSE , N_("Pause"), "C",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
168 N_("Pause"), G_CALLBACK(action_playback_pause) },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
169
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
170 { "playback stop", GTK_STOCK_MEDIA_STOP , N_("Stop"), "V",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
171 N_("Stop"), G_CALLBACK(action_playback_stop) },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
172
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
173 { "playback previous", GTK_STOCK_MEDIA_PREVIOUS , N_("Previous"), "Z",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
174 N_("Previous"), G_CALLBACK(action_playback_previous) },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
175
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
176 { "playback next", GTK_STOCK_MEDIA_NEXT , N_("Next"), "B",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
177 N_("Next"), G_CALLBACK(action_playback_next) }
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
178 };
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
179
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
180
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
181 static GtkActionEntry mainwin_action_entries_visualization[] = {
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
182
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
183 { "visualization", NULL, "Visualization" },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
184
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
185 { "vismode", NULL, "Visualization Mode" },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
186
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
187 { "anamode", NULL, "Analyzer Mode" },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
188
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
189 { "scomode", NULL, "Scope Mode" },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
190
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
191 { "vprmode", NULL, "Voiceprint Mode" },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
192
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
193 { "wshmode", NULL, "WindowShade VU Mode" },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
194
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
195 { "refrate", NULL, "Refresh Rate" },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
196
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
197 { "anafoff", NULL, "Analyzer Falloff" },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
198
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
199 { "peafoff", NULL, "Peaks Falloff" }
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
200 };
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
201
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
202 static GtkActionEntry mainwin_action_entries_playlist[] = {
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
203
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
204 { "playlist", NULL, "Playlist" },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
205
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
206 { "playlist new", NULL , N_("New Playlist"), "<Shift>N",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
207 N_("New Playlist"), G_CALLBACK(action_playlist_new) },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
208
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
209 { "playlist select next", NULL , N_("Select Next Playlist"), "<Shift>P",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
210 N_("Select Next Playlist"), G_CALLBACK(action_playlist_next) },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
211
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
212 { "playlist select previous", NULL , N_("Select Previous Playlist"), "<Shift><Ctrl>P",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
213 N_("Select Previous Playlist"), G_CALLBACK(action_playlist_prev) }
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
214 };
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
215
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
216 static GtkActionEntry mainwin_action_entries_view[] = {
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
217
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
218 { "view", NULL, "View" }
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
219 };
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
220
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
221 static GtkActionEntry mainwin_action_entries_others[] = {
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
222
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
223 { "dummy", NULL, "dummy" },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
224
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
225 { "track info", AUD_STOCK_INFO , N_("View Track Details"), NULL,
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
226 N_("View track details"), G_CALLBACK(action_track_info) },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
227
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
228 { "about audacious", GTK_STOCK_DIALOG_INFO , N_("About Audacious"), NULL,
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
229 N_("About Audacious"), G_CALLBACK(action_about_audacious) },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
230
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
231 { "play file", GTK_STOCK_OPEN , N_("Play File"), "L",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
232 N_("Load and play a file"), G_CALLBACK(action_play_file) },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
233
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
234 { "play location", GTK_STOCK_NETWORK , N_("Play Location"), "<Ctrl>L",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
235 N_("Play media from the selected location"), G_CALLBACK(action_play_location) },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
236
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
237 { "preferences", GTK_STOCK_PREFERENCES , N_("Preferences"), "<Ctrl>P",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
238 N_("Open preferences window"), G_CALLBACK(action_preferences) },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
239
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
240 { "quit", GTK_STOCK_QUIT , N_("_Quit"), NULL,
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
241 N_("Quit Audacious"), G_CALLBACK(action_quit) },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
242
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
243 { "ab set", NULL , N_("Set A-B"), "A",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
244 N_("Set A-B"), G_CALLBACK(action_ab_set) },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
245
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
246 { "ab clear", NULL , N_("Clear A-B"), "<Ctrl>S",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
247 N_("Clear A-B"), G_CALLBACK(action_ab_clear) },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
248
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
249 { "jump to playlist start", GTK_STOCK_GOTO_TOP , N_("Jump to Playlist Start"), "<Ctrl>Z",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
250 N_("Jump to Playlist Start"), G_CALLBACK(action_jump_to_playlist_start) },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
251
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
252 { "jump to file", GTK_STOCK_JUMP_TO , N_("Jump to File"), "J",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
253 N_("Jump to File"), G_CALLBACK(action_jump_to_file) },
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
254
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
255 { "jump to time", GTK_STOCK_JUMP_TO , N_("Jump to Time"), "<Ctrl>J",
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
256 N_("Jump to Time"), G_CALLBACK(action_jump_to_time) }
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
257 };
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
258
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
259
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
260
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
261 /* ***************************** */
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
262
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
263 void
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
264 ui_manager_init ( void )
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
265 {
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
266 /* toggle actions */
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
267 mainwin_toggleaction_group_others = gtk_action_group_new("mainwin_toggleaction_others");
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
268 gtk_action_group_add_toggle_actions(
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
269 mainwin_toggleaction_group_others , mainwin_toggleaction_entries_others ,
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
270 G_N_ELEMENTS(mainwin_toggleaction_entries_others) , NULL );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
271
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
272 /* radio actions */
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
273 mainwin_radioaction_group_anamode = gtk_action_group_new("mainwin_radioaction_anamode");
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
274 gtk_action_group_add_radio_actions(
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
275 mainwin_radioaction_group_anamode , mainwin_radioaction_entries_anamode ,
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
276 G_N_ELEMENTS(mainwin_radioaction_entries_anamode) , 0 , G_CALLBACK(action_anamode) , NULL );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
277
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
278 mainwin_radioaction_group_anatype = gtk_action_group_new("mainwin_radioaction_anatype");
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
279 gtk_action_group_add_radio_actions(
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
280 mainwin_radioaction_group_anatype , mainwin_radioaction_entries_anatype ,
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
281 G_N_ELEMENTS(mainwin_radioaction_entries_anatype) , 0 , G_CALLBACK(action_anatype) , NULL );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
282
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
283 mainwin_radioaction_group_scomode = gtk_action_group_new("mainwin_radioaction_scomode");
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
284 gtk_action_group_add_radio_actions(
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
285 mainwin_radioaction_group_scomode , mainwin_radioaction_entries_scomode ,
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
286 G_N_ELEMENTS(mainwin_radioaction_entries_scomode) , 0 , G_CALLBACK(action_scomode) , NULL );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
287
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
288 mainwin_radioaction_group_vprmode = gtk_action_group_new("mainwin_radioaction_vprmode");
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
289 gtk_action_group_add_radio_actions(
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
290 mainwin_radioaction_group_vprmode , mainwin_radioaction_entries_vprmode ,
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
291 G_N_ELEMENTS(mainwin_radioaction_entries_vprmode) , 0 , G_CALLBACK(action_vprmode) , NULL );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
292
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
293 mainwin_radioaction_group_wshmode = gtk_action_group_new("mainwin_radioaction_wshmode");
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
294 gtk_action_group_add_radio_actions(
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
295 mainwin_radioaction_group_wshmode , mainwin_radioaction_entries_wshmode ,
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
296 G_N_ELEMENTS(mainwin_radioaction_entries_wshmode) , 0 , G_CALLBACK(action_wshmode) , NULL );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
297
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
298 mainwin_radioaction_group_refrate = gtk_action_group_new("mainwin_radioaction_refrate");
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
299 gtk_action_group_add_radio_actions(
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
300 mainwin_radioaction_group_refrate , mainwin_radioaction_entries_refrate ,
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
301 G_N_ELEMENTS(mainwin_radioaction_entries_refrate) , 0 , G_CALLBACK(action_refrate) , NULL );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
302
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
303 mainwin_radioaction_group_anafoff = gtk_action_group_new("mainwin_radioaction_anafoff");
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
304 gtk_action_group_add_radio_actions(
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
305 mainwin_radioaction_group_anafoff , mainwin_radioaction_entries_anafoff ,
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
306 G_N_ELEMENTS(mainwin_radioaction_entries_anafoff) , 0 , G_CALLBACK(action_anafoff) , NULL );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
307
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
308 mainwin_radioaction_group_peafoff = gtk_action_group_new("mainwin_radioaction_peafoff");
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
309 gtk_action_group_add_radio_actions(
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
310 mainwin_radioaction_group_peafoff , mainwin_radioaction_entries_peafoff ,
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
311 G_N_ELEMENTS(mainwin_radioaction_entries_peafoff) , 0 , G_CALLBACK(action_peafoff) , NULL );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
312
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
313 mainwin_radioaction_group_vismode = gtk_action_group_new("mainwin_radioaction_vismode");
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
314 gtk_action_group_add_radio_actions(
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
315 mainwin_radioaction_group_vismode , mainwin_radioaction_entries_vismode ,
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
316 G_N_ELEMENTS(mainwin_radioaction_entries_vismode) , 0 , G_CALLBACK(action_vismode) , NULL );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
317
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
318 mainwin_radioaction_group_viewtime = gtk_action_group_new("mainwin_radioaction_viewtime");
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
319 gtk_action_group_add_radio_actions(
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
320 mainwin_radioaction_group_viewtime , mainwin_radioaction_entries_viewtime ,
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
321 G_N_ELEMENTS(mainwin_radioaction_entries_viewtime) , 0 , G_CALLBACK(action_viewtime) , NULL );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
322
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
323 /* normal actions */
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
324 mainwin_action_group_playback = gtk_action_group_new("mainwin_action_playback");
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
325 gtk_action_group_add_actions(
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
326 mainwin_action_group_playback , mainwin_action_entries_playback ,
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
327 G_N_ELEMENTS(mainwin_action_entries_playback) , NULL );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
328
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
329 mainwin_action_group_playlist = gtk_action_group_new("mainwin_action_playlist");
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
330 gtk_action_group_add_actions(
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
331 mainwin_action_group_playlist , mainwin_action_entries_playlist ,
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
332 G_N_ELEMENTS(mainwin_action_entries_playlist) , NULL );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
333
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
334 mainwin_action_group_visualization = gtk_action_group_new("mainwin_action_visualization");
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
335 gtk_action_group_add_actions(
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
336 mainwin_action_group_visualization , mainwin_action_entries_visualization ,
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
337 G_N_ELEMENTS(mainwin_action_entries_visualization) , NULL );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
338
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
339 mainwin_action_group_view = gtk_action_group_new("mainwin_action_view");
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
340 gtk_action_group_add_actions(
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
341 mainwin_action_group_view , mainwin_action_entries_view ,
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
342 G_N_ELEMENTS(mainwin_action_entries_view) , NULL );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
343
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
344 mainwin_action_group_others = gtk_action_group_new("mainwin_action_others");
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
345 gtk_action_group_add_actions(
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
346 mainwin_action_group_others , mainwin_action_entries_others ,
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
347 G_N_ELEMENTS(mainwin_action_entries_others) , NULL );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
348
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
349 /* ui */
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
350 ui_manager = gtk_ui_manager_new();
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
351 gtk_ui_manager_insert_action_group( ui_manager , mainwin_toggleaction_group_others , 0 );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
352 gtk_ui_manager_insert_action_group( ui_manager , mainwin_radioaction_group_anamode , 0 );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
353 gtk_ui_manager_insert_action_group( ui_manager , mainwin_radioaction_group_anatype , 0 );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
354 gtk_ui_manager_insert_action_group( ui_manager , mainwin_radioaction_group_scomode , 0 );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
355 gtk_ui_manager_insert_action_group( ui_manager , mainwin_radioaction_group_vprmode , 0 );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
356 gtk_ui_manager_insert_action_group( ui_manager , mainwin_radioaction_group_wshmode , 0 );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
357 gtk_ui_manager_insert_action_group( ui_manager , mainwin_radioaction_group_refrate , 0 );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
358 gtk_ui_manager_insert_action_group( ui_manager , mainwin_radioaction_group_anafoff , 0 );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
359 gtk_ui_manager_insert_action_group( ui_manager , mainwin_radioaction_group_peafoff , 0 );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
360 gtk_ui_manager_insert_action_group( ui_manager , mainwin_radioaction_group_vismode , 0 );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
361 gtk_ui_manager_insert_action_group( ui_manager , mainwin_radioaction_group_viewtime , 0 );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
362 gtk_ui_manager_insert_action_group( ui_manager , mainwin_action_group_playback , 0 );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
363 gtk_ui_manager_insert_action_group( ui_manager , mainwin_action_group_playlist , 0 );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
364 gtk_ui_manager_insert_action_group( ui_manager , mainwin_action_group_visualization , 0 );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
365 gtk_ui_manager_insert_action_group( ui_manager , mainwin_action_group_view , 0 );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
366 gtk_ui_manager_insert_action_group( ui_manager , mainwin_action_group_others , 0 );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
367
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
368 return;
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
369 }
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
370
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
371
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
372 void
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
373 ui_manager_create_menus ( void )
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
374 {
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
375 GError *gerr = NULL;
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
376
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
377 /* attach xml menu definitions */
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
378 gtk_ui_manager_add_ui_from_file( ui_manager , DATA_DIR "/ui/mainwin.ui" , &gerr );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
379
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
380 if ( gerr != NULL )
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
381 {
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
382 g_critical( "Error creating UI<ui/mainwin.ui>: %s" , gerr->message );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
383 g_error_free( gerr );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
384 return;
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
385 }
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
386
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
387 /* create GtkMenu widgets using path from xml definitions */
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
388 mainwin_songname_menu = ui_manager_get_popup_menu( ui_manager , "/mainwin-menus/songname-menu" );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
389 mainwin_visualization_menu = ui_manager_get_popup_menu( ui_manager , "/mainwin-menus/main-menu/visualization" );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
390 mainwin_playback_menu = ui_manager_get_popup_menu( ui_manager , "/mainwin-menus/main-menu/playback" );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
391 mainwin_playlist_menu = ui_manager_get_popup_menu( ui_manager , "/mainwin-menus/main-menu/playlist" );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
392 mainwin_view_menu = ui_manager_get_popup_menu( ui_manager , "/mainwin-menus/main-menu/view" );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
393 mainwin_general_menu = ui_manager_get_popup_menu( ui_manager , "/mainwin-menus/main-menu" );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
394
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
395 return;
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
396 }
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
397
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
398
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
399 GtkAccelGroup *
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
400 ui_manager_get_accel_group ( void )
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
401 {
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
402 return gtk_ui_manager_get_accel_group( ui_manager );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
403 }
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
404
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
405
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
406 GtkWidget *
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
407 ui_manager_get_popup_menu ( GtkUIManager * self , const gchar * path )
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
408 {
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
409 GtkWidget *menu_item = gtk_ui_manager_get_widget( self , path );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
410
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
411 if (GTK_IS_MENU_ITEM(menu_item))
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
412 return gtk_menu_item_get_submenu(GTK_MENU_ITEM(menu_item));
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
413 else
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
414 return NULL;
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
415 }
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
416
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
417
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
418 static void
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
419 menu_popup_pos_func (GtkMenu * menu , gint * x , gint * y , gboolean * push_in , gint * point )
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
420 {
2234
ba07fe36bfb4 [svn] - ensure that popup menus are always fully displayed
giacomo
parents: 2232
diff changeset
421 GtkRequisition requisition;
ba07fe36bfb4 [svn] - ensure that popup menus are always fully displayed
giacomo
parents: 2232
diff changeset
422 gint screen_width;
ba07fe36bfb4 [svn] - ensure that popup menus are always fully displayed
giacomo
parents: 2232
diff changeset
423 gint screen_height;
ba07fe36bfb4 [svn] - ensure that popup menus are always fully displayed
giacomo
parents: 2232
diff changeset
424
ba07fe36bfb4 [svn] - ensure that popup menus are always fully displayed
giacomo
parents: 2232
diff changeset
425 gtk_widget_size_request(GTK_WIDGET(menu), &requisition);
ba07fe36bfb4 [svn] - ensure that popup menus are always fully displayed
giacomo
parents: 2232
diff changeset
426
ba07fe36bfb4 [svn] - ensure that popup menus are always fully displayed
giacomo
parents: 2232
diff changeset
427 screen_width = gdk_screen_width();
ba07fe36bfb4 [svn] - ensure that popup menus are always fully displayed
giacomo
parents: 2232
diff changeset
428 screen_height = gdk_screen_height();
ba07fe36bfb4 [svn] - ensure that popup menus are always fully displayed
giacomo
parents: 2232
diff changeset
429
ba07fe36bfb4 [svn] - ensure that popup menus are always fully displayed
giacomo
parents: 2232
diff changeset
430 *x = CLAMP(point[0] - 2, 0, MAX(0, screen_width - requisition.width));
ba07fe36bfb4 [svn] - ensure that popup menus are always fully displayed
giacomo
parents: 2232
diff changeset
431 *y = CLAMP(point[1] - 2, 0, MAX(0, screen_height - requisition.height));
ba07fe36bfb4 [svn] - ensure that popup menus are always fully displayed
giacomo
parents: 2232
diff changeset
432
2232
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
433 *push_in = FALSE;
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
434 }
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
435
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
436
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
437 void
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
438 ui_manager_popup_menu_show ( GtkMenu * menu , gint x , gint y , guint button , guint time )
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
439 {
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
440 gint pos[2];
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
441 pos[0] = x;
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
442 pos[1] = y;
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
443
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
444 gtk_menu_popup( menu , NULL , NULL ,
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
445 (GtkMenuPositionFunc) menu_popup_pos_func , pos , button , time );
ac2ea05e60a0 [svn] - migration from gtkitemfactory to actions and uimanager; main menu has been ported, still much work and test to do
giacomo
parents:
diff changeset
446 }