Mercurial > audlegacy
annotate audacious/glade.h @ 2124:83c9caf0c554 trunk
[svn] - add some basic code for the manipulation of temporary playlists
author | nenolod |
---|---|
date | Fri, 15 Dec 2006 07:38:23 -0800 |
parents | f18a5b617c34 |
children | 4bc65cec8f7a |
rev | line source |
---|---|
0 | 1 /* BMP - Cross-platform multimedia player |
2 * Copyright (C) 2003-2004 BMP development team. | |
3 * | |
4 * This program is free software; you can redistribute it and/or modify | |
5 * it under the terms of the GNU General Public License as published by | |
2105
f18a5b617c34
[svn] - move to GPLv2-only. Based on my interpretation of the license, we are
nenolod
parents:
1459
diff
changeset
|
6 * the Free Software Foundation; under version 2 of the License. |
0 | 7 * |
8 * This program is distributed in the hope that it will be useful, | |
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 * GNU General Public License for more details. | |
12 * | |
13 * You should have received a copy of the GNU General Public License | |
14 * along with this program; if not, write to the Free Software | |
1459 | 15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
0 | 16 */ |
17 | |
18 #ifndef BMP_GLADE_H | |
19 #define BMP_GLADE_H | |
20 | |
21 #include <glib.h> | |
22 #include <gtk/gtk.h> | |
23 #include <glade/glade.h> | |
24 | |
25 | |
26 typedef struct _FuncMap FuncMap; | |
27 | |
28 struct _FuncMap { | |
29 gchar *name; | |
30 GCallback function; | |
31 }; | |
32 | |
33 | |
34 #define FUNC_MAP_BEGIN(map) static FuncMap map[] = { | |
35 #define FUNC_MAP_ENTRY(function) { #function, (GCallback) function }, | |
36 #define FUNC_MAP_END { NULL, NULL } }; | |
37 | |
38 | |
39 GladeXML *glade_xml_new_or_die(const gchar * name, const gchar * path, | |
40 const gchar * root, const gchar * domain); | |
41 | |
42 GtkWidget *glade_xml_get_widget_warn(GladeXML * xml, const gchar * name); | |
43 | |
44 void glade_xml_signal_autoconnect_map(GladeXML * xml, FuncMap * map); | |
45 | |
46 #endif |