annotate src/audacious/ui_plugin_menu.h @ 3369:676bfd7b6586 trunk

simplified the custom plugin menuentries system, expecially for ui files
author Giacomo Lozito <james@develia.org>
date Sun, 19 Aug 2007 13:57:53 +0200
parents 3a3f43afd9a0
children 973cf1ae043a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3307
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
1 /* Audacious - Cross-platform multimedia player
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
2 * Copyright (C) 2005-2007 Audacious development team.
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
3 *
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
4 * This program is free software; you can redistribute it and/or modify
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
5 * it under the terms of the GNU General Public License as published by
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
6 * the Free Software Foundation; under version 3 of the License.
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
7 *
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
8 * This program is distributed in the hope that it will be useful,
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
11 * GNU General Public License for more details.
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
12 *
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
13 * You should have received a copy of the GNU General Public License
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
14 * along with this program. If not, see <http://www.gnu.org/licenses>.
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
15 *
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
16 * The Audacious team does not consider modular code linking to
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
17 * Audacious or using our public API to be a derived work.
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
18 */
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
19
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
20 /* these functions are currently implemented in ui_manager.c */
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
21
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
22 #ifndef AUD_UIPLUGINMENU_H
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
23 #define AUD_UIPLUGINMENU_H
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
24
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
25
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
26 #include <glib.h>
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
27 #include <glib/gi18n.h>
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
28 #include <gtk/gtk.h>
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
29
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
30
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: 3307
diff changeset
31 #define AUDACIOUS_MENU_MAIN 0
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: 3307
diff changeset
32 #define AUDACIOUS_MENU_PLAYLIST 1
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: 3307
diff changeset
33 #define AUDACIOUS_MENU_PLAYLIST_RCLICK 2
3369
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3320
diff changeset
34 #define AUDACIOUS_MENU_PLAYLIST_ADD 3
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3320
diff changeset
35 #define AUDACIOUS_MENU_PLAYLIST_REMOVE 4
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3320
diff changeset
36 #define AUDACIOUS_MENU_PLAYLIST_SELECT 5
676bfd7b6586 simplified the custom plugin menuentries system, expecially for ui files
Giacomo Lozito <james@develia.org>
parents: 3320
diff changeset
37 #define AUDACIOUS_MENU_PLAYLIST_SORT 6
3307
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
38
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
39 gint audacious_menu_plugin_item_add( gint , GtkWidget * );
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
40 gint audacious_menu_plugin_item_remove( gint , GtkWidget * );
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
41
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
42
b5b2573db5c2 add required header for plugin-customized menus
Giacomo Lozito <james@develia.org>
parents:
diff changeset
43 #endif /* AUD_UIPLUGINMENU_H */