annotate src/audacious/ui_manager.c @ 4325:309e8f970517

removed report_error() and reimplemented some error routines
author mf0102 <0102@gmx.at>
date Thu, 13 Mar 2008 16:31:48 +0100
parents f1074a07ec09
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
1 /* Audacious - Cross-platform multimedia player
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
2 * Copyright (C) 2005-2007 Audacious development team.
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
3 *
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
4 * This program is free software; you can redistribute it and/or modify
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
5 * it under the terms of the GNU General Public License as published by
3121
3b6d316f8b09 GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents: 3113
diff changeset
6 * the Free Software Foundation; under version 3 of the License.
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
7 *
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
8 * This program is distributed in the hope that it will be useful,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
11 * GNU General Public License for more details.
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
12 *
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
13 * You should have received a copy of the GNU General Public License
3121
3b6d316f8b09 GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents: 3113
diff changeset
14 * along with this program. If not, see <http://www.gnu.org/licenses>.
3123
f1c756f39e6c Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents: 3121
diff changeset
15 *
f1c756f39e6c Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents: 3121
diff changeset
16 * The Audacious team does not consider modular code linking to
f1c756f39e6c Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents: 3121
diff changeset
17 * Audacious or using our public API to be a derived work.
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
18 */
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
19
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
20 #ifdef HAVE_CONFIG_H
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
21 # include "config.h"
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
22 #endif
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
23
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
24 #include "ui_manager.h"
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
25 #include "actions-mainwin.h"
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
26 #include "actions-playlist.h"
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
27 #include "actions-equalizer.h"
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
28
3306
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
29 /* this header contains prototypes for plugin-available menu functions */
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
30 #include "ui_plugin_menu.h"
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
31
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
32 /* TODO ui_main.h is only included because ui_manager.c needs the values of
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
33 TimerMode enum; move that enum elsewhere so we can get rid of this include */
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
34 #include "ui_main.h"
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
35
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
36 #include "icons-stock.h"
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
37
3419
47d6fb3884fb Connect menu to Carbon.
William Pitcock <nenolod@atheme.org>
parents: 3418
diff changeset
38 #include "sync-menu.h"
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
39
3306
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
40 static GtkUIManager *ui_manager = NULL;
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
41 static gboolean menu_created = FALSE;
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
42
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
43
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
44 /* toggle action entries */
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
45
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
46 static GtkToggleActionEntry toggleaction_entries_others[] = {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
47
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
48 { "autoscroll songname", NULL , N_("Autoscroll Songname"), NULL,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
49 N_("Autoscroll Songname"), G_CALLBACK(action_autoscroll_songname) , FALSE },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
50
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
51 { "stop after current song", NULL , N_("Stop after Current Song"), "<Ctrl>M",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
52 N_("Stop after Current Song"), G_CALLBACK(action_stop_after_current_song) , FALSE },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
53
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
54 { "anamode peaks", NULL , N_("Peaks"), NULL,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
55 N_("Peaks"), G_CALLBACK(action_anamode_peaks) , FALSE },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
56
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
57 { "playback repeat", NULL , N_("Repeat"), "R",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
58 N_("Repeat"), G_CALLBACK(action_playback_repeat) , FALSE },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
59
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
60 { "playback shuffle", NULL , N_("Shuffle"), "S",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
61 N_("Shuffle"), G_CALLBACK(action_playback_shuffle) , FALSE },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
62
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
63 { "playback no playlist advance", NULL , N_("No Playlist Advance"), "<Ctrl>N",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
64 N_("No Playlist Advance"), G_CALLBACK(action_playback_noplaylistadvance) , FALSE },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
65
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
66 { "show player", NULL , N_("Show Player"), "<Alt>M",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
67 N_("Show Player"), G_CALLBACK(action_show_player) , FALSE },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
68
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
69 { "show playlist editor", NULL , N_("Show Playlist Editor"), "<Alt>E",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
70 N_("Show Playlist Editor"), G_CALLBACK(action_show_playlist_editor) , FALSE },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
71
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
72 { "show equalizer", NULL , N_("Show Equalizer"), "<Alt>G",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
73 N_("Show Equalizer"), G_CALLBACK(action_show_equalizer) , FALSE },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
74
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
75 { "view always on top", NULL , N_("Always on Top"), "<Ctrl>O",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
76 N_("Always on Top"), G_CALLBACK(action_view_always_on_top) , FALSE },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
77
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
78 { "view put on all workspaces", NULL , N_("Put on All Workspaces"), "<Ctrl>S",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
79 N_("Put on All Workspaces"), G_CALLBACK(action_view_on_all_workspaces) , FALSE },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
80
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
81 { "roll up player", NULL , N_("Roll up Player"), "<Ctrl>W",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
82 N_("Roll up Player"), G_CALLBACK(action_roll_up_player) , FALSE },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
83
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
84 { "roll up playlist editor", NULL , N_("Roll up Playlist Editor"), "<Shift><Ctrl>W",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
85 N_("Roll up Playlist Editor"), G_CALLBACK(action_roll_up_playlist_editor) , FALSE },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
86
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
87 { "roll up equalizer", NULL , N_("Roll up Equalizer"), "<Ctrl><Alt>W",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
88 N_("Roll up Equalizer"), G_CALLBACK(action_roll_up_equalizer) , FALSE },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
89
4218
f1074a07ec09 mostly works, but the VIS is broken, and the eq window is too large...more bugs
Cristi Magherusan <majeru@atheme.org>
parents: 4216
diff changeset
90 { "view scaled", NULL , N_("Scale"), "<Ctrl>D",
f1074a07ec09 mostly works, but the VIS is broken, and the eq window is too large...more bugs
Cristi Magherusan <majeru@atheme.org>
parents: 4216
diff changeset
91 N_("DoubleSize"), G_CALLBACK(action_view_scaled) , FALSE },
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
92
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
93 { "view easy move", NULL , N_("Easy Move"), "<Ctrl>E",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
94 N_("Easy Move"), G_CALLBACK(action_view_easymove) , FALSE }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
95 };
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
96
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
97
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
98
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
99 /* radio action entries */
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
100
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
101 static GtkRadioActionEntry radioaction_entries_vismode[] = {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
102 { "vismode analyzer", NULL , N_("Analyzer"), NULL, N_("Analyzer"), VIS_ANALYZER },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
103 { "vismode scope", NULL , N_("Scope"), NULL, N_("Scope"), VIS_SCOPE },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
104 { "vismode voiceprint", NULL , N_("Voiceprint"), NULL, N_("Voiceprint"), VIS_VOICEPRINT },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
105 { "vismode off", NULL , N_("Off"), NULL, N_("Off"), VIS_OFF }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
106 };
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
107
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
108 static GtkRadioActionEntry radioaction_entries_anamode[] = {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
109 { "anamode normal", NULL , N_("Normal"), NULL, N_("Normal"), ANALYZER_NORMAL },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
110 { "anamode fire", NULL , N_("Fire"), NULL, N_("Fire"), ANALYZER_FIRE },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
111 { "anamode vertical lines", NULL , N_("Vertical Lines"), NULL, N_("Vertical Lines"), ANALYZER_VLINES }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
112 };
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
113
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
114 static GtkRadioActionEntry radioaction_entries_anatype[] = {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
115 { "anatype lines", NULL , N_("Lines"), NULL, N_("Lines"), ANALYZER_LINES },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
116 { "anatype bars", NULL , N_("Bars"), NULL, N_("Bars"), ANALYZER_BARS }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
117 };
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
118
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
119 static GtkRadioActionEntry radioaction_entries_scomode[] = {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
120 { "scomode dot", NULL , N_("Dot Scope"), NULL, N_("Dot Scope"), SCOPE_DOT },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
121 { "scomode line", NULL , N_("Line Scope"), NULL, N_("Line Scope"), SCOPE_LINE },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
122 { "scomode solid", NULL , N_("Solid Scope"), NULL, N_("Solid Scope"), SCOPE_SOLID }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
123 };
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
124
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
125 static GtkRadioActionEntry radioaction_entries_vprmode[] = {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
126 { "vprmode normal", NULL , N_("Normal"), NULL, N_("Normal"), VOICEPRINT_NORMAL },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
127 { "vprmode fire", NULL , N_("Fire"), NULL, N_("Fire"), VOICEPRINT_FIRE },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
128 { "vprmode ice", NULL , N_("Ice"), NULL, N_("Ice"), VOICEPRINT_ICE }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
129 };
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
130
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
131 static GtkRadioActionEntry radioaction_entries_wshmode[] = {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
132 { "wshmode normal", NULL , N_("Normal"), NULL, N_("Normal"), VU_NORMAL },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
133 { "wshmode smooth", NULL , N_("Smooth"), NULL, N_("Smooth"), VU_SMOOTH }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
134 };
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
135
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
136 static GtkRadioActionEntry radioaction_entries_refrate[] = {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
137 { "refrate full", NULL , N_("Full (~50 fps)"), NULL, N_("Full (~50 fps)"), REFRESH_FULL },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
138 { "refrate half", NULL , N_("Half (~25 fps)"), NULL, N_("Half (~25 fps)"), REFRESH_HALF },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
139 { "refrate quarter", NULL , N_("Quarter (~13 fps)"), NULL, N_("Quarter (~13 fps)"), REFRESH_QUARTER },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
140 { "refrate eighth", NULL , N_("Eighth (~6 fps)"), NULL, N_("Eighth (~6 fps)"), REFRESH_EIGTH }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
141 };
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
142
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
143 static GtkRadioActionEntry radioaction_entries_anafoff[] = {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
144 { "anafoff slowest", NULL , N_("Slowest"), NULL, N_("Slowest"), FALLOFF_SLOWEST },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
145 { "anafoff slow", NULL , N_("Slow"), NULL, N_("Slow"), FALLOFF_SLOW },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
146 { "anafoff medium", NULL , N_("Medium"), NULL, N_("Medium"), FALLOFF_MEDIUM },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
147 { "anafoff fast", NULL , N_("Fast"), NULL, N_("Fast"), FALLOFF_FAST },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
148 { "anafoff fastest", NULL , N_("Fastest"), NULL, N_("Fastest"), FALLOFF_FASTEST }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
149 };
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
150
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
151 static GtkRadioActionEntry radioaction_entries_peafoff[] = {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
152 { "peafoff slowest", NULL , N_("Slowest"), NULL, N_("Slowest"), FALLOFF_SLOWEST },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
153 { "peafoff slow", NULL , N_("Slow"), NULL, N_("Slow"), FALLOFF_SLOW },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
154 { "peafoff medium", NULL , N_("Medium"), NULL, N_("Medium"), FALLOFF_MEDIUM },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
155 { "peafoff fast", NULL , N_("Fast"), NULL, N_("Fast"), FALLOFF_FAST },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
156 { "peafoff fastest", NULL , N_("Fastest"), NULL, N_("Fastest"), FALLOFF_FASTEST }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
157 };
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
158
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
159 static GtkRadioActionEntry radioaction_entries_viewtime[] = {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
160 { "view time elapsed", NULL , N_("Time Elapsed"), "<Ctrl>E", N_("Time Elapsed"), TIMER_ELAPSED },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
161 { "view time remaining", NULL , N_("Time Remaining"), "<Ctrl>R", N_("Time Remaining"), TIMER_REMAINING }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
162 };
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
163
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
164
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
165
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
166 /* normal actions */
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
167
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
168 static GtkActionEntry action_entries_playback[] = {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
169
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
170 { "playback", NULL, N_("Playback") },
3023
49ce30748980 added lastfm GUI stub
Cristi Magherusan <majeru@atheme-project.org>
parents: 2598
diff changeset
171
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
172 { "playback play", GTK_STOCK_MEDIA_PLAY , N_("Play"), "X",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
173 N_("Play"), G_CALLBACK(action_playback_play) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
174
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
175 { "playback pause", GTK_STOCK_MEDIA_PAUSE , N_("Pause"), "C",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
176 N_("Pause"), G_CALLBACK(action_playback_pause) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
177
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
178 { "playback stop", GTK_STOCK_MEDIA_STOP , N_("Stop"), "V",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
179 N_("Stop"), G_CALLBACK(action_playback_stop) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
180
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
181 { "playback previous", GTK_STOCK_MEDIA_PREVIOUS , N_("Previous"), "Z",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
182 N_("Previous"), G_CALLBACK(action_playback_previous) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
183
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
184 { "playback next", GTK_STOCK_MEDIA_NEXT , N_("Next"), "B",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
185 N_("Next"), G_CALLBACK(action_playback_next) }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
186 };
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
187
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
188
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
189 static GtkActionEntry action_entries_visualization[] = {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
190 { "visualization", NULL, N_("Visualization") },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
191 { "vismode", NULL, N_("Visualization Mode") },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
192 { "anamode", NULL, N_("Analyzer Mode") },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
193 { "scomode", NULL, N_("Scope Mode") },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
194 { "vprmode", NULL, N_("Voiceprint Mode") },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
195 { "wshmode", NULL, N_("WindowShade VU Mode") },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
196 { "refrate", NULL, N_("Refresh Rate") },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
197 { "anafoff", NULL, N_("Analyzer Falloff") },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
198 { "peafoff", NULL, N_("Peaks Falloff") }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
199 };
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
200
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
201 static GtkActionEntry action_entries_playlist[] = {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
202
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
203 { "playlist", NULL, N_("Playlist") },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
204
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
205 { "playlist new", GTK_STOCK_NEW , N_("New Playlist"), "<Shift>N",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
206 N_("New Playlist"), G_CALLBACK(action_playlist_new) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
207
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
208 { "playlist select next", GTK_STOCK_MEDIA_NEXT, N_("Select Next Playlist"), "<Shift>P",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
209 N_("Select Next Playlist"), G_CALLBACK(action_playlist_next) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
210
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
211 { "playlist select previous", GTK_STOCK_MEDIA_PREVIOUS, N_("Select Previous Playlist"), "<Shift><Ctrl>P",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
212 N_("Select Previous Playlist"), G_CALLBACK(action_playlist_prev) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
213
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
214 { "playlist delete", GTK_STOCK_DELETE , N_("Delete Playlist"), "<Shift>D",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
215 N_("Delete Playlist"), G_CALLBACK(action_playlist_delete) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
216
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
217 { "playlist load", GTK_STOCK_OPEN, N_("Load List"), "O",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
218 N_("Loads a playlist file into the selected playlist."), G_CALLBACK(action_playlist_load_list) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
219
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
220 { "playlist save", GTK_STOCK_SAVE, N_("Save List"), "<Shift>S",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
221 N_("Saves the selected playlist."), G_CALLBACK(action_playlist_save_list) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
222
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
223 { "playlist save default", GTK_STOCK_SAVE, N_("Save Default List"), "<Alt>S",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
224 N_("Saves the selected playlist to the default location."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
225 G_CALLBACK(action_playlist_save_default_list) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
226
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
227 { "playlist refresh", GTK_STOCK_REFRESH, N_("Refresh List"), "F5",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
228 N_("Refreshes metadata associated with a playlist entry."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
229 G_CALLBACK(action_playlist_refresh_list) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
230
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
231 { "playlist manager", AUD_STOCK_PLAYLIST , N_("List Manager"), "P",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
232 N_("Opens the playlist manager."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
233 G_CALLBACK(action_open_list_manager) }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
234 };
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
235
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
236 static GtkActionEntry action_entries_view[] = {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
237
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
238 { "view", NULL, N_("View") }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
239 };
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
240
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
241 static GtkActionEntry action_entries_playlist_add[] = {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
242 { "playlist add url", GTK_STOCK_NETWORK, N_("Add Internet Address..."), "<Ctrl>H",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
243 N_("Adds a remote track to the playlist."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
244 G_CALLBACK(action_playlist_add_url) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
245
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
246 { "playlist add files", GTK_STOCK_ADD, N_("Add Files..."), "F",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
247 N_("Adds files to the playlist."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
248 G_CALLBACK(action_playlist_add_files) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
249 };
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
250
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
251 static GtkActionEntry action_entries_playlist_select[] = {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
252 { "playlist search and select", GTK_STOCK_FIND, N_("Search and Select"), "<Ctrl>F",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
253 N_("Searches the playlist and selects playlist entries based on specific criteria."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
254 G_CALLBACK(action_playlist_search_and_select) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
255
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
256 { "playlist invert selection", NULL , N_("Invert Selection"), NULL,
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
257 N_("Inverts the selected and unselected entries."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
258 G_CALLBACK(action_playlist_invert_selection) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
259
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
260 { "playlist select all", NULL , N_("Select All"), "<Ctrl>A",
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
261 N_("Selects all of the playlist entries."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
262 G_CALLBACK(action_playlist_select_all) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
263
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
264 { "playlist select none", NULL , N_("Select None"), "<Shift><Ctrl>A",
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
265 N_("Deselects all of the playlist entries."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
266 G_CALLBACK(action_playlist_select_none) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
267 };
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
268
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
269 static GtkActionEntry action_entries_playlist_delete[] = {
4055
cb1fdf8bafac slightly regroup playlist delete items
mf0102 <0102@gmx.at>
parents: 4054
diff changeset
270 { "playlist remove all", GTK_STOCK_CLEAR, N_("Remove All"), NULL,
cb1fdf8bafac slightly regroup playlist delete items
mf0102 <0102@gmx.at>
parents: 4054
diff changeset
271 N_("Removes all entries from the playlist."),
cb1fdf8bafac slightly regroup playlist delete items
mf0102 <0102@gmx.at>
parents: 4054
diff changeset
272 G_CALLBACK(action_playlist_remove_all) },
cb1fdf8bafac slightly regroup playlist delete items
mf0102 <0102@gmx.at>
parents: 4054
diff changeset
273
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
274 { "playlist clear queue", GTK_STOCK_CLEAR, N_("Clear Queue"), "<Shift>Q",
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
275 N_("Clears the queue associated with this playlist."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
276 G_CALLBACK(action_playlist_clear_queue) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
277
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
278 { "playlist remove unavailable", GTK_STOCK_DIALOG_ERROR , N_("Remove Unavailable Files"), NULL,
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
279 N_("Removes unavailable files from the playlist."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
280 G_CALLBACK(action_playlist_remove_unavailable) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
281
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
282 { "playlist remove dups menu", NULL , N_("Remove Duplicates") },
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
283
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
284 { "playlist remove dups by title", NULL , N_("By Title"), NULL,
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
285 N_("Removes duplicate entries from the playlist by title."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
286 G_CALLBACK(action_playlist_remove_dupes_by_title) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
287
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
288 { "playlist remove dups by filename", NULL , N_("By Filename"), NULL,
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
289 N_("Removes duplicate entries from the playlist by filename."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
290 G_CALLBACK(action_playlist_remove_dupes_by_filename) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
291
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
292 { "playlist remove dups by full path", NULL , N_("By Path + Filename"), NULL,
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
293 N_("Removes duplicate entries from the playlist by their full path."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
294 G_CALLBACK(action_playlist_remove_dupes_by_full_path) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
295
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
296 { "playlist remove unselected", GTK_STOCK_REMOVE, N_("Remove Unselected"), NULL,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
297 N_("Remove unselected entries from the playlist."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
298 G_CALLBACK(action_playlist_remove_unselected) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
299
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
300 { "playlist remove selected", GTK_STOCK_REMOVE, N_("Remove Selected"), "Delete",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
301 N_("Remove selected entries from the playlist."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
302 G_CALLBACK(action_playlist_remove_selected) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
303 };
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
304
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
305 static GtkActionEntry action_entries_playlist_sort[] = {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
306 { "playlist randomize list", AUD_STOCK_RANDOMIZEPL , N_("Randomize List"), "<Ctrl><Shift>R",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
307 N_("Randomizes the playlist."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
308 G_CALLBACK(action_playlist_randomize_list) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
309
4056
9e7fe796537f last optic tweaks before sleeping (this is so addicting! :-) , desowin
mf0102 <0102@gmx.at>
parents: 4055
diff changeset
310 { "playlist reverse list", GTK_STOCK_GO_UP , N_("Reverse List"), NULL,
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
311 N_("Reverses the playlist."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
312 G_CALLBACK(action_playlist_reverse_list) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
313
4056
9e7fe796537f last optic tweaks before sleeping (this is so addicting! :-) , desowin
mf0102 <0102@gmx.at>
parents: 4055
diff changeset
314 { "playlist sort menu", GTK_STOCK_GO_DOWN , N_("Sort List") },
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
315
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
316 { "playlist sort by title", NULL , N_("By Title"), NULL,
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
317 N_("Sorts the list by title."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
318 G_CALLBACK(action_playlist_sort_by_title) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
319
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
320 { "playlist sort by artist", NULL , N_("By Artist"), NULL,
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
321 N_("Sorts the list by artist."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
322 G_CALLBACK(action_playlist_sort_by_artist) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
323
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
324 { "playlist sort by filename", NULL , N_("By Filename"), NULL,
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
325 N_("Sorts the list by filename."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
326 G_CALLBACK(action_playlist_sort_by_filename) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
327
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
328 { "playlist sort by full path", NULL , N_("By Path + Filename"), NULL,
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
329 N_("Sorts the list by full pathname."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
330 G_CALLBACK(action_playlist_sort_by_full_path) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
331
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
332 { "playlist sort by date", NULL , N_("By Date"), NULL,
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
333 N_("Sorts the list by modification time."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
334 G_CALLBACK(action_playlist_sort_by_date) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
335
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
336 { "playlist sort by track number", NULL , N_("By Track Number"), NULL,
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
337 N_("Sorts the list by track number."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
338 G_CALLBACK(action_playlist_sort_by_track_number) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
339
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
340 { "playlist sort by playlist entry", NULL , N_("By Playlist Entry"), NULL,
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
341 N_("Sorts the list by playlist entry."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
342 G_CALLBACK(action_playlist_sort_by_playlist_entry) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
343
4056
9e7fe796537f last optic tweaks before sleeping (this is so addicting! :-) , desowin
mf0102 <0102@gmx.at>
parents: 4055
diff changeset
344 { "playlist sort selected menu", GTK_STOCK_GO_DOWN , N_("Sort Selected") },
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
345
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
346 { "playlist sort selected by title", NULL , N_("By Title"), NULL,
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
347 N_("Sorts the list by title."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
348 G_CALLBACK(action_playlist_sort_selected_by_title) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
349
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
350 { "playlist sort selected by artist", NULL, N_("By Artist"), NULL,
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
351 N_("Sorts the list by artist."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
352 G_CALLBACK(action_playlist_sort_selected_by_artist) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
353
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
354 { "playlist sort selected by filename", NULL , N_("By Filename"), NULL,
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
355 N_("Sorts the list by filename."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
356 G_CALLBACK(action_playlist_sort_selected_by_filename) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
357
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
358 { "playlist sort selected by full path", NULL , N_("By Path + Filename"), NULL,
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
359 N_("Sorts the list by full pathname."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
360 G_CALLBACK(action_playlist_sort_selected_by_full_path) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
361
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
362 { "playlist sort selected by date", NULL , N_("By Date"), NULL,
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
363 N_("Sorts the list by modification time."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
364 G_CALLBACK(action_playlist_sort_selected_by_date) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
365
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
366 { "playlist sort selected by track number", NULL , N_("By Track Number"), NULL,
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
367 N_("Sorts the list by track number."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
368 G_CALLBACK(action_playlist_sort_selected_by_track_number) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
369
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
370 { "playlist sort selected by playlist entry", NULL, N_("By Playlist Entry"), NULL,
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
371 N_("Sorts the list by playlist entry."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
372 G_CALLBACK(action_playlist_sort_selected_by_playlist_entry) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
373 };
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
374
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
375 static GtkActionEntry action_entries_others[] = {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
376
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
377 { "dummy", NULL, "dummy" },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
378
3418
c27b1b544026 macos: carbon menubar, try 1
William Pitcock <nenolod@atheme.org>
parents: 3411
diff changeset
379 /* XXX Carbon support */
c27b1b544026 macos: carbon menubar, try 1
William Pitcock <nenolod@atheme.org>
parents: 3411
diff changeset
380 { "file", NULL, N_("File") },
c27b1b544026 macos: carbon menubar, try 1
William Pitcock <nenolod@atheme.org>
parents: 3411
diff changeset
381 { "help", NULL, N_("Help") },
c27b1b544026 macos: carbon menubar, try 1
William Pitcock <nenolod@atheme.org>
parents: 3411
diff changeset
382
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
383 { "plugins-menu", AUD_STOCK_PLUGIN, N_("Plugin Services") },
3369
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
384
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
385 { "current track info", GTK_STOCK_INFO , N_("View Track Details"), "I",
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
386 N_("View track details"), G_CALLBACK(action_current_track_info) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
387
4054
d3b549e75380 removed some old icons and replaced them with shiny, new ones
mf0102 <0102@gmx.at>
parents: 3751
diff changeset
388 { "playlist track info", GTK_STOCK_INFO , N_("View Track Details"), "<Alt>I",
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
389 N_("View track details"), G_CALLBACK(action_playlist_track_info) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
390
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
391 { "about audacious", GTK_STOCK_DIALOG_INFO , N_("About Audacious"), NULL,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
392 N_("About Audacious"), G_CALLBACK(action_about_audacious) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
393
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
394 { "play file", GTK_STOCK_OPEN , N_("Play File"), "L",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
395 N_("Load and play a file"), G_CALLBACK(action_play_file) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
396
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
397 { "play location", GTK_STOCK_NETWORK , N_("Play Location"), "<Ctrl>L",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
398 N_("Play media from the selected location"), G_CALLBACK(action_play_location) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
399
3599
24ae9b303a9d removed lastfm from the core, rewriting it as a plugin
Cristi Magherusan <majeru@atheme-project.org>
parents: 3419
diff changeset
400 { "plugins", NULL , N_("Plugin services") },
3306
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
401
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
402 { "preferences", GTK_STOCK_PREFERENCES , N_("Preferences"), "<Ctrl>P",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
403 N_("Open preferences window"), G_CALLBACK(action_preferences) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
404
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
405 { "quit", GTK_STOCK_QUIT , N_("_Quit"), NULL,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
406 N_("Quit Audacious"), G_CALLBACK(action_quit) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
407
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
408 { "ab set", NULL , N_("Set A-B"), "A",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
409 N_("Set A-B"), G_CALLBACK(action_ab_set) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
410
2598
472496186cfa [svn] - how about <Shift>A for Clear A-B?
yaz
parents: 2597
diff changeset
411 { "ab clear", NULL , N_("Clear A-B"), "<Shift>A",
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
412 N_("Clear A-B"), G_CALLBACK(action_ab_clear) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
413
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
414 { "jump to playlist start", GTK_STOCK_GOTO_TOP , N_("Jump to Playlist Start"), "<Ctrl>Z",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
415 N_("Jump to Playlist Start"), G_CALLBACK(action_jump_to_playlist_start) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
416
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
417 { "jump to file", GTK_STOCK_JUMP_TO , N_("Jump to File"), "J",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
418 N_("Jump to File"), G_CALLBACK(action_jump_to_file) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
419
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
420 { "jump to time", GTK_STOCK_JUMP_TO , N_("Jump to Time"), "<Ctrl>J",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
421 N_("Jump to Time"), G_CALLBACK(action_jump_to_time) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
422
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
423 { "queue toggle", AUD_STOCK_QUEUETOGGLE , N_("Queue Toggle"), "Q",
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
424 N_("Enables/disables the entry in the playlist's queue."),
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
425 G_CALLBACK(action_queue_toggle) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
426 };
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
427
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
428
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
429 static GtkActionEntry action_entries_equalizer[] = {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
430
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
431 { "equ preset load menu", NULL, N_("Load") },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
432 { "equ preset import menu", NULL, N_("Import") },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
433 { "equ preset save menu", NULL, N_("Save") },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
434 { "equ preset delete menu", NULL, N_("Delete") },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
435
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
436 { "equ load preset", NULL, N_("Preset"), NULL,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
437 N_("Load preset"), G_CALLBACK(action_equ_load_preset) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
438
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
439 { "equ load auto preset", NULL, N_("Auto-load preset"), NULL,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
440 N_("Load auto-load preset"), G_CALLBACK(action_equ_load_auto_preset) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
441
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
442 { "equ load default preset", NULL, N_("Default"), NULL,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
443 N_("Load default preset into equalizer"), G_CALLBACK(action_equ_load_default_preset) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
444
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
445 { "equ zero preset", NULL, N_("Zero"), NULL,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
446 N_("Set equalizer preset levels to zero"), G_CALLBACK(action_equ_zero_preset) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
447
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
448 { "equ load preset file", NULL, N_("From file"), NULL,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
449 N_("Load preset from file"), G_CALLBACK(action_equ_load_preset_file) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
450
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
451 { "equ load preset eqf", NULL, N_("From WinAMP EQF file"), NULL,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
452 N_("Load preset from WinAMP EQF file"), G_CALLBACK(action_equ_load_preset_eqf) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
453
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
454 { "equ import winamp presets", NULL, N_("WinAMP Presets"), NULL,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
455 N_("Import WinAMP presets"), G_CALLBACK(action_equ_import_winamp_presets) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
456
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
457 { "equ save preset", NULL, N_("Preset"), NULL,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
458 N_("Save preset"), G_CALLBACK(action_equ_save_preset) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
459
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
460 { "equ save auto preset", NULL, N_("Auto-load preset"), NULL,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
461 N_("Save auto-load preset"), G_CALLBACK(action_equ_save_auto_preset) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
462
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
463 { "equ save default preset", NULL, N_("Default"), NULL,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
464 N_("Save default preset"), G_CALLBACK(action_equ_save_default_preset) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
465
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
466 { "equ save preset file", NULL, N_("To file"), NULL,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
467 N_("Save preset to file"), G_CALLBACK(action_equ_save_preset_file) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
468
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
469 { "equ save preset eqf", NULL, N_("To WinAMP EQF file"), NULL,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
470 N_("Save preset to WinAMP EQF file"), G_CALLBACK(action_equ_save_preset_eqf) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
471
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
472 { "equ delete preset", NULL, N_("Preset"), NULL,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
473 N_("Delete preset"), G_CALLBACK(action_equ_delete_preset) },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
474
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
475 { "equ delete auto preset", NULL, N_("Auto-load preset"), NULL,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
476 N_("Delete auto-load preset"), G_CALLBACK(action_equ_delete_auto_preset) }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
477 };
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
478
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
479
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
480
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
481 /* ***************************** */
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
482
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
483
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
484 static GtkActionGroup *
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
485 ui_manager_new_action_group( const gchar * group_name )
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
486 {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
487 GtkActionGroup *group = gtk_action_group_new( group_name );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
488 gtk_action_group_set_translation_domain( group , PACKAGE_NAME );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
489 return group;
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
490 }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
491
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
492 void
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
493 ui_manager_init ( void )
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
494 {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
495 /* toggle actions */
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
496 toggleaction_group_others = ui_manager_new_action_group("toggleaction_others");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
497 gtk_action_group_add_toggle_actions(
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
498 toggleaction_group_others , toggleaction_entries_others ,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
499 G_N_ELEMENTS(toggleaction_entries_others) , NULL );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
500
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
501 /* radio actions */
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
502 radioaction_group_anamode = ui_manager_new_action_group("radioaction_anamode");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
503 gtk_action_group_add_radio_actions(
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
504 radioaction_group_anamode , radioaction_entries_anamode ,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
505 G_N_ELEMENTS(radioaction_entries_anamode) , 0 , G_CALLBACK(action_anamode) , NULL );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
506
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
507 radioaction_group_anatype = ui_manager_new_action_group("radioaction_anatype");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
508 gtk_action_group_add_radio_actions(
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
509 radioaction_group_anatype , radioaction_entries_anatype ,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
510 G_N_ELEMENTS(radioaction_entries_anatype) , 0 , G_CALLBACK(action_anatype) , NULL );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
511
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
512 radioaction_group_scomode = ui_manager_new_action_group("radioaction_scomode");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
513 gtk_action_group_add_radio_actions(
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
514 radioaction_group_scomode , radioaction_entries_scomode ,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
515 G_N_ELEMENTS(radioaction_entries_scomode) , 0 , G_CALLBACK(action_scomode) , NULL );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
516
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
517 radioaction_group_vprmode = ui_manager_new_action_group("radioaction_vprmode");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
518 gtk_action_group_add_radio_actions(
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
519 radioaction_group_vprmode , radioaction_entries_vprmode ,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
520 G_N_ELEMENTS(radioaction_entries_vprmode) , 0 , G_CALLBACK(action_vprmode) , NULL );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
521
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
522 radioaction_group_wshmode = ui_manager_new_action_group("radioaction_wshmode");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
523 gtk_action_group_add_radio_actions(
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
524 radioaction_group_wshmode , radioaction_entries_wshmode ,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
525 G_N_ELEMENTS(radioaction_entries_wshmode) , 0 , G_CALLBACK(action_wshmode) , NULL );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
526
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
527 radioaction_group_refrate = ui_manager_new_action_group("radioaction_refrate");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
528 gtk_action_group_add_radio_actions(
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
529 radioaction_group_refrate , radioaction_entries_refrate ,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
530 G_N_ELEMENTS(radioaction_entries_refrate) , 0 , G_CALLBACK(action_refrate) , NULL );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
531
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
532 radioaction_group_anafoff = ui_manager_new_action_group("radioaction_anafoff");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
533 gtk_action_group_add_radio_actions(
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
534 radioaction_group_anafoff , radioaction_entries_anafoff ,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
535 G_N_ELEMENTS(radioaction_entries_anafoff) , 0 , G_CALLBACK(action_anafoff) , NULL );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
536
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
537 radioaction_group_peafoff = ui_manager_new_action_group("radioaction_peafoff");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
538 gtk_action_group_add_radio_actions(
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
539 radioaction_group_peafoff , radioaction_entries_peafoff ,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
540 G_N_ELEMENTS(radioaction_entries_peafoff) , 0 , G_CALLBACK(action_peafoff) , NULL );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
541
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
542 radioaction_group_vismode = ui_manager_new_action_group("radioaction_vismode");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
543 gtk_action_group_add_radio_actions(
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
544 radioaction_group_vismode , radioaction_entries_vismode ,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
545 G_N_ELEMENTS(radioaction_entries_vismode) , 0 , G_CALLBACK(action_vismode) , NULL );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
546
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
547 radioaction_group_viewtime = ui_manager_new_action_group("radioaction_viewtime");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
548 gtk_action_group_add_radio_actions(
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
549 radioaction_group_viewtime , radioaction_entries_viewtime ,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
550 G_N_ELEMENTS(radioaction_entries_viewtime) , 0 , G_CALLBACK(action_viewtime) , NULL );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
551
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
552 /* normal actions */
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
553 action_group_playback = ui_manager_new_action_group("action_playback");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
554 gtk_action_group_add_actions(
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
555 action_group_playback , action_entries_playback ,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
556 G_N_ELEMENTS(action_entries_playback) , NULL );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
557
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
558 action_group_playlist = ui_manager_new_action_group("action_playlist");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
559 gtk_action_group_add_actions(
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
560 action_group_playlist , action_entries_playlist ,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
561 G_N_ELEMENTS(action_entries_playlist) , NULL );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
562
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
563 action_group_visualization = ui_manager_new_action_group("action_visualization");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
564 gtk_action_group_add_actions(
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
565 action_group_visualization , action_entries_visualization ,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
566 G_N_ELEMENTS(action_entries_visualization) , NULL );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
567
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
568 action_group_view = ui_manager_new_action_group("action_view");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
569 gtk_action_group_add_actions(
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
570 action_group_view , action_entries_view ,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
571 G_N_ELEMENTS(action_entries_view) , NULL );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
572
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
573 action_group_others = ui_manager_new_action_group("action_others");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
574 gtk_action_group_add_actions(
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
575 action_group_others , action_entries_others ,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
576 G_N_ELEMENTS(action_entries_others) , NULL );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
577
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
578 action_group_playlist_add = ui_manager_new_action_group("action_playlist_add");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
579 gtk_action_group_add_actions(
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
580 action_group_playlist_add, action_entries_playlist_add,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
581 G_N_ELEMENTS(action_entries_playlist_add), NULL );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
582
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
583 action_group_playlist_select = ui_manager_new_action_group("action_playlist_select");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
584 gtk_action_group_add_actions(
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
585 action_group_playlist_select, action_entries_playlist_select,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
586 G_N_ELEMENTS(action_entries_playlist_select), NULL );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
587
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
588 action_group_playlist_delete = ui_manager_new_action_group("action_playlist_delete");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
589 gtk_action_group_add_actions(
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
590 action_group_playlist_delete, action_entries_playlist_delete,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
591 G_N_ELEMENTS(action_entries_playlist_delete), NULL );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
592
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
593 action_group_playlist_sort = ui_manager_new_action_group("action_playlist_sort");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
594 gtk_action_group_add_actions(
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
595 action_group_playlist_sort, action_entries_playlist_sort,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
596 G_N_ELEMENTS(action_entries_playlist_sort), NULL );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
597
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
598 action_group_equalizer = ui_manager_new_action_group("action_equalizer");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
599 gtk_action_group_add_actions(
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
600 action_group_equalizer, action_entries_equalizer,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
601 G_N_ELEMENTS(action_entries_equalizer), NULL);
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
602
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
603 /* ui */
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
604 ui_manager = gtk_ui_manager_new();
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
605 gtk_ui_manager_insert_action_group( ui_manager , toggleaction_group_others , 0 );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
606 gtk_ui_manager_insert_action_group( ui_manager , radioaction_group_anamode , 0 );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
607 gtk_ui_manager_insert_action_group( ui_manager , radioaction_group_anatype , 0 );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
608 gtk_ui_manager_insert_action_group( ui_manager , radioaction_group_scomode , 0 );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
609 gtk_ui_manager_insert_action_group( ui_manager , radioaction_group_vprmode , 0 );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
610 gtk_ui_manager_insert_action_group( ui_manager , radioaction_group_wshmode , 0 );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
611 gtk_ui_manager_insert_action_group( ui_manager , radioaction_group_refrate , 0 );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
612 gtk_ui_manager_insert_action_group( ui_manager , radioaction_group_anafoff , 0 );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
613 gtk_ui_manager_insert_action_group( ui_manager , radioaction_group_peafoff , 0 );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
614 gtk_ui_manager_insert_action_group( ui_manager , radioaction_group_vismode , 0 );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
615 gtk_ui_manager_insert_action_group( ui_manager , radioaction_group_viewtime , 0 );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
616 gtk_ui_manager_insert_action_group( ui_manager , action_group_playback , 0 );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
617 gtk_ui_manager_insert_action_group( ui_manager , action_group_playlist , 0 );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
618 gtk_ui_manager_insert_action_group( ui_manager , action_group_visualization , 0 );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
619 gtk_ui_manager_insert_action_group( ui_manager , action_group_view , 0 );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
620 gtk_ui_manager_insert_action_group( ui_manager , action_group_others , 0 );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
621 gtk_ui_manager_insert_action_group( ui_manager , action_group_playlist_add , 0 );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
622 gtk_ui_manager_insert_action_group( ui_manager , action_group_playlist_select , 0 );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
623 gtk_ui_manager_insert_action_group( ui_manager , action_group_playlist_delete , 0 );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
624 gtk_ui_manager_insert_action_group( ui_manager , action_group_playlist_sort , 0 );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
625 gtk_ui_manager_insert_action_group( ui_manager , action_group_equalizer , 0 );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
626
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
627 return;
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
628 }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
629
3418
c27b1b544026 macos: carbon menubar, try 1
William Pitcock <nenolod@atheme.org>
parents: 3411
diff changeset
630 #ifdef GDK_WINDOWING_QUARTZ
c27b1b544026 macos: carbon menubar, try 1
William Pitcock <nenolod@atheme.org>
parents: 3411
diff changeset
631 static GtkWidget *carbon_menubar;
c27b1b544026 macos: carbon menubar, try 1
William Pitcock <nenolod@atheme.org>
parents: 3411
diff changeset
632 #endif
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
633
3306
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
634 static void
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
635 ui_manager_create_menus_init_pmenu( gchar * path )
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
636 {
3371
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
637 GtkWidget *plugins_menu_item = gtk_ui_manager_get_widget( ui_manager , path );
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
638 if ( plugins_menu_item )
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
639 {
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
640 /* initially set count of items under plugins_menu_item to 0 */
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
641 g_object_set_data( G_OBJECT(plugins_menu_item) , "ic" , GINT_TO_POINTER(0) );
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
642 /* and since it's 0, hide the plugins_menu_item */
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
643 gtk_widget_hide( plugins_menu_item );
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
644 }
3306
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
645 return;
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
646 }
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
647
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
648
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
649 void
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
650 ui_manager_create_menus ( void )
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
651 {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
652 GError *gerr = NULL;
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
653
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
654 /* attach xml menu definitions */
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
655 gtk_ui_manager_add_ui_from_file( ui_manager , DATA_DIR "/ui/mainwin.ui" , &gerr );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
656
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
657 if ( gerr != NULL )
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
658 {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
659 g_critical( "Error creating UI<ui/mainwin.ui>: %s" , gerr->message );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
660 g_error_free( gerr );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
661 return;
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
662 }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
663
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
664 /* create GtkMenu widgets using path from xml definitions */
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
665 mainwin_songname_menu = ui_manager_get_popup_menu( ui_manager , "/mainwin-menus/songname-menu" );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
666 mainwin_visualization_menu = ui_manager_get_popup_menu( ui_manager , "/mainwin-menus/main-menu/visualization" );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
667 mainwin_playback_menu = ui_manager_get_popup_menu( ui_manager , "/mainwin-menus/main-menu/playback" );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
668 mainwin_playlist_menu = ui_manager_get_popup_menu( ui_manager , "/mainwin-menus/main-menu/playlist" );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
669 mainwin_view_menu = ui_manager_get_popup_menu( ui_manager , "/mainwin-menus/main-menu/view" );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
670 mainwin_general_menu = ui_manager_get_popup_menu( ui_manager , "/mainwin-menus/main-menu" );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
671
3306
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
672 /* initialize plugins-menu for mainwin-menus */
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
673 ui_manager_create_menus_init_pmenu( "/mainwin-menus/main-menu/plugins-menu" );
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
674
3418
c27b1b544026 macos: carbon menubar, try 1
William Pitcock <nenolod@atheme.org>
parents: 3411
diff changeset
675 #ifdef GDK_WINDOWING_QUARTZ
c27b1b544026 macos: carbon menubar, try 1
William Pitcock <nenolod@atheme.org>
parents: 3411
diff changeset
676 gtk_ui_manager_add_ui_from_file( ui_manager , DATA_DIR "/ui/carbon-menubar.ui" , &gerr );
c27b1b544026 macos: carbon menubar, try 1
William Pitcock <nenolod@atheme.org>
parents: 3411
diff changeset
677
c27b1b544026 macos: carbon menubar, try 1
William Pitcock <nenolod@atheme.org>
parents: 3411
diff changeset
678 if ( gerr != NULL )
c27b1b544026 macos: carbon menubar, try 1
William Pitcock <nenolod@atheme.org>
parents: 3411
diff changeset
679 {
c27b1b544026 macos: carbon menubar, try 1
William Pitcock <nenolod@atheme.org>
parents: 3411
diff changeset
680 g_critical( "Error creating UI<ui/carbon-menubar.ui>: %s" , gerr->message );
c27b1b544026 macos: carbon menubar, try 1
William Pitcock <nenolod@atheme.org>
parents: 3411
diff changeset
681 g_error_free( gerr );
c27b1b544026 macos: carbon menubar, try 1
William Pitcock <nenolod@atheme.org>
parents: 3411
diff changeset
682 return;
c27b1b544026 macos: carbon menubar, try 1
William Pitcock <nenolod@atheme.org>
parents: 3411
diff changeset
683 }
c27b1b544026 macos: carbon menubar, try 1
William Pitcock <nenolod@atheme.org>
parents: 3411
diff changeset
684
c27b1b544026 macos: carbon menubar, try 1
William Pitcock <nenolod@atheme.org>
parents: 3411
diff changeset
685 carbon_menubar = ui_manager_get_popup_menu( ui_manager , "/carbon-menubar/main-menu" );
3419
47d6fb3884fb Connect menu to Carbon.
William Pitcock <nenolod@atheme.org>
parents: 3418
diff changeset
686 sync_menu_takeover_menu(GTK_MENU_SHELL(carbon_menubar));
3418
c27b1b544026 macos: carbon menubar, try 1
William Pitcock <nenolod@atheme.org>
parents: 3411
diff changeset
687 #endif
c27b1b544026 macos: carbon menubar, try 1
William Pitcock <nenolod@atheme.org>
parents: 3411
diff changeset
688
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
689 gtk_ui_manager_add_ui_from_file( ui_manager , DATA_DIR "/ui/playlist.ui" , &gerr );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
690
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
691 if ( gerr != NULL )
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
692 {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
693 g_critical( "Error creating UI<ui/playlist.ui>: %s" , gerr->message );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
694 g_error_free( gerr );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
695 return;
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
696 }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
697
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
698 playlistwin_popup_menu = ui_manager_get_popup_menu(ui_manager, "/playlist-menus/playlist-rightclick-menu");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
699
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
700 playlistwin_pladd_menu = ui_manager_get_popup_menu(ui_manager, "/playlist-menus/add-menu");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
701 playlistwin_pldel_menu = ui_manager_get_popup_menu(ui_manager, "/playlist-menus/del-menu");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
702 playlistwin_plsel_menu = ui_manager_get_popup_menu(ui_manager, "/playlist-menus/select-menu");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
703 playlistwin_plsort_menu = ui_manager_get_popup_menu(ui_manager, "/playlist-menus/misc-menu");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
704 playlistwin_pllist_menu = ui_manager_get_popup_menu(ui_manager, "/playlist-menus/playlist-menu");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
705
3306
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
706 /* initialize plugins-menu for playlist-menus */
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
707 ui_manager_create_menus_init_pmenu( "/playlist-menus/playlist-menu/plugins-menu" );
3371
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
708 ui_manager_create_menus_init_pmenu( "/playlist-menus/add-menu/plugins-menu" );
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
709 ui_manager_create_menus_init_pmenu( "/playlist-menus/del-menu/plugins-menu" );
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
710 ui_manager_create_menus_init_pmenu( "/playlist-menus/select-menu/plugins-menu" );
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
711 ui_manager_create_menus_init_pmenu( "/playlist-menus/misc-menu/plugins-menu" );
3320
3a3f43afd9a0 plugin-customizable menu entries: added AUDACIOUS_MENU_PLAYLIST_RCLICK to manage custom entries for the playlist right-click menu
Giacomo Lozito <james@develia.org>
parents: 3306
diff changeset
712 ui_manager_create_menus_init_pmenu( "/playlist-menus/playlist-rightclick-menu/plugins-menu" );
3306
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
713
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
714 gtk_ui_manager_add_ui_from_file( ui_manager , DATA_DIR "/ui/equalizer.ui" , &gerr );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
715
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
716 if ( gerr != NULL )
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
717 {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
718 g_critical( "Error creating UI<ui/equalizer.ui>: %s" , gerr->message );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
719 g_error_free( gerr );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
720 return;
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
721 }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
722
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
723 equalizerwin_presets_menu = ui_manager_get_popup_menu(ui_manager, "/equalizer-menus/preset-menu");
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
724
3306
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
725 menu_created = TRUE;
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
726
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
727 return;
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
728 }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
729
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
730
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
731 GtkAccelGroup *
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
732 ui_manager_get_accel_group ( void )
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
733 {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
734 return gtk_ui_manager_get_accel_group( ui_manager );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
735 }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
736
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
737
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
738 GtkWidget *
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
739 ui_manager_get_popup_menu ( GtkUIManager * self , const gchar * path )
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
740 {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
741 GtkWidget *menu_item = gtk_ui_manager_get_widget( self , path );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
742
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
743 if (GTK_IS_MENU_ITEM(menu_item))
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
744 return gtk_menu_item_get_submenu(GTK_MENU_ITEM(menu_item));
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
745 else
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
746 return NULL;
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
747 }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
748
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
749
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
750 static void
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
751 menu_popup_pos_func (GtkMenu * menu , gint * x , gint * y , gboolean * push_in , gint * point )
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
752 {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
753 GtkRequisition requisition;
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
754 gint screen_width;
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
755 gint screen_height;
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
756
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
757 gtk_widget_size_request(GTK_WIDGET(menu), &requisition);
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
758
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
759 screen_width = gdk_screen_width();
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
760 screen_height = gdk_screen_height();
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
761
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
762 *x = CLAMP(point[0] - 2, 0, MAX(0, screen_width - requisition.width));
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
763 *y = CLAMP(point[1] - 2, 0, MAX(0, screen_height - requisition.height));
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
764
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
765 *push_in = FALSE;
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
766 }
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
767
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
768
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
769 void
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
770 ui_manager_popup_menu_show ( GtkMenu * menu , gint x , gint y , guint button , guint time )
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
771 {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
772 gint pos[2];
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
773 pos[0] = x;
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
774 pos[1] = y;
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
775
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
776 gtk_menu_popup( menu , NULL , NULL ,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
777 (GtkMenuPositionFunc) menu_popup_pos_func , pos , button , time );
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
778 }
3306
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
779
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
780
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
781
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
782 /******************************/
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
783 /* plugin-available functions */
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
784
3371
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
785 #define _MP_GWID(y) gtk_ui_manager_get_widget( ui_manager , y )
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
786
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
787 static GtkWidget*
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
788 audacious_menu_plugin_menuwid( menu_id )
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
789 {
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
790 switch (menu_id)
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
791 {
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
792 case AUDACIOUS_MENU_MAIN:
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
793 return _MP_GWID("/mainwin-menus/main-menu/plugins-menu");
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
794 case AUDACIOUS_MENU_PLAYLIST:
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
795 return _MP_GWID("/playlist-menus/playlist-menu/plugins-menu");
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
796 case AUDACIOUS_MENU_PLAYLIST_RCLICK:
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
797 return _MP_GWID("/playlist-menus/playlist-rightclick-menu/plugins-menu");
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
798 case AUDACIOUS_MENU_PLAYLIST_ADD:
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
799 return _MP_GWID("/playlist-menus/add-menu/plugins-menu");
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
800 case AUDACIOUS_MENU_PLAYLIST_REMOVE:
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
801 return _MP_GWID("/playlist-menus/del-menu/plugins-menu");
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
802 case AUDACIOUS_MENU_PLAYLIST_SELECT:
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
803 return _MP_GWID("/playlist-menus/select-menu/plugins-menu");
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
804 case AUDACIOUS_MENU_PLAYLIST_MISC:
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
805 return _MP_GWID("/playlist-menus/misc-menu/plugins-menu");
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
806 default:
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
807 return NULL;
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
808 }
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
809 }
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
810
3306
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
811
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
812 gint
3751
0fb35f6cc4b7 PluginMenu API is exported now. No changes required to plugins.
William Pitcock <nenolod@atheme.org>
parents: 3599
diff changeset
813 menu_plugin_item_add( gint menu_id , GtkWidget * item )
3306
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
814 {
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
815 if ( menu_created )
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
816 {
3320
3a3f43afd9a0 plugin-customizable menu entries: added AUDACIOUS_MENU_PLAYLIST_RCLICK to manage custom entries for the playlist right-click menu
Giacomo Lozito <james@develia.org>
parents: 3306
diff changeset
817 GtkWidget *plugins_menu = NULL;
3371
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
818 GtkWidget *plugins_menu_item = audacious_menu_plugin_menuwid( menu_id );
3320
3a3f43afd9a0 plugin-customizable menu entries: added AUDACIOUS_MENU_PLAYLIST_RCLICK to manage custom entries for the playlist right-click menu
Giacomo Lozito <james@develia.org>
parents: 3306
diff changeset
819 if ( plugins_menu_item )
3a3f43afd9a0 plugin-customizable menu entries: added AUDACIOUS_MENU_PLAYLIST_RCLICK to manage custom entries for the playlist right-click menu
Giacomo Lozito <james@develia.org>
parents: 3306
diff changeset
820 {
3369
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
821 gint ic = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(plugins_menu_item),"ic"));
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
822 if ( ic == 0 ) /* no items under plugins_menu_item, create the submenu */
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
823 {
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
824 plugins_menu = gtk_menu_new();
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
825 gtk_menu_item_set_submenu( GTK_MENU_ITEM(plugins_menu_item), plugins_menu );
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
826 }
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
827 else /* items available under plugins_menu_item, pick the existing submenu */
3320
3a3f43afd9a0 plugin-customizable menu entries: added AUDACIOUS_MENU_PLAYLIST_RCLICK to manage custom entries for the playlist right-click menu
Giacomo Lozito <james@develia.org>
parents: 3306
diff changeset
828 {
3369
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
829 plugins_menu = gtk_menu_item_get_submenu( GTK_MENU_ITEM(plugins_menu_item) );
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
830 if ( !plugins_menu ) return -1;
3320
3a3f43afd9a0 plugin-customizable menu entries: added AUDACIOUS_MENU_PLAYLIST_RCLICK to manage custom entries for the playlist right-click menu
Giacomo Lozito <james@develia.org>
parents: 3306
diff changeset
831 }
3369
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
832 gtk_menu_shell_append( GTK_MENU_SHELL(plugins_menu) , item );
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
833 gtk_widget_show( plugins_menu_item );
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
834 g_object_set_data( G_OBJECT(plugins_menu_item) , "ic" , GINT_TO_POINTER(++ic) );
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
835 return 0; /* success */
3320
3a3f43afd9a0 plugin-customizable menu entries: added AUDACIOUS_MENU_PLAYLIST_RCLICK to manage custom entries for the playlist right-click menu
Giacomo Lozito <james@develia.org>
parents: 3306
diff changeset
836 }
3306
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
837 }
3372
1b0db603df9d minor adjustments
Giacomo Lozito <james@develia.org>
parents: 3371
diff changeset
838 return -1; /* failure */
3306
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
839 }
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
840
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
841
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
842 gint
3751
0fb35f6cc4b7 PluginMenu API is exported now. No changes required to plugins.
William Pitcock <nenolod@atheme.org>
parents: 3599
diff changeset
843 menu_plugin_item_remove( gint menu_id , GtkWidget * item )
3306
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
844 {
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
845 if ( menu_created )
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
846 {
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
847 GtkWidget *plugins_menu = NULL;
3371
973cf1ae043a it's now possible to add plugin menuentries in playlist add, del, select and misc popup menus
Giacomo Lozito <james@develia.org>
parents: 3369
diff changeset
848 GtkWidget *plugins_menu_item = audacious_menu_plugin_menuwid( menu_id );
3320
3a3f43afd9a0 plugin-customizable menu entries: added AUDACIOUS_MENU_PLAYLIST_RCLICK to manage custom entries for the playlist right-click menu
Giacomo Lozito <james@develia.org>
parents: 3306
diff changeset
849 if ( plugins_menu_item )
3306
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
850 {
3369
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
851 gint ic = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(plugins_menu_item),"ic"));
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
852 if ( ic > 0 )
3320
3a3f43afd9a0 plugin-customizable menu entries: added AUDACIOUS_MENU_PLAYLIST_RCLICK to manage custom entries for the playlist right-click menu
Giacomo Lozito <james@develia.org>
parents: 3306
diff changeset
853 {
3369
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
854 plugins_menu = gtk_menu_item_get_submenu( GTK_MENU_ITEM(plugins_menu_item) );
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
855 if ( plugins_menu )
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
856 {
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
857 /* remove the plugin-added entry */
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
858 gtk_container_remove( GTK_CONTAINER(plugins_menu) , item );
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
859 g_object_set_data( G_OBJECT(plugins_menu_item) , "ic" , GINT_TO_POINTER(--ic) );
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
860 if ( ic == 0 ) /* if the menu is empty now, destroy it */
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
861 {
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
862 gtk_menu_item_remove_submenu( GTK_MENU_ITEM(plugins_menu_item) );
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
863 gtk_widget_destroy( plugins_menu );
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
864 gtk_widget_hide( plugins_menu_item );
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
865 }
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
866 return 0; /* success */
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3351
diff changeset
867 }
3320
3a3f43afd9a0 plugin-customizable menu entries: added AUDACIOUS_MENU_PLAYLIST_RCLICK to manage custom entries for the playlist right-click menu
Giacomo Lozito <james@develia.org>
parents: 3306
diff changeset
868 }
3306
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
869 }
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
870 }
3372
1b0db603df9d minor adjustments
Giacomo Lozito <james@develia.org>
parents: 3371
diff changeset
871 return -1; /* failure */
3306
404ffedef3e1 added support for plugin-customizable menus; plugins can add their own entries (and even submenus) in main and playlist popup menus
Giacomo Lozito <james@develia.org>
parents: 3251
diff changeset
872 }