annotate src/audacious/glade.h @ 2862:7dad846ec699 trunk

BSD relicensing (pass 3).
author William Pitcock <nenolod@atheme.org>
date Sat, 23 Jun 2007 22:38:15 -0500
parents 7d3beedf1db8
children 51dda959be4d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2861
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
1 /*
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
2 * audacious: Cross-platform multimedia player.
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
3 * glade.h: libglade loading and function mapping support
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
4 *
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
5 * Copyright (c) 2005-2007 Audacious development team.
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
6 * Copyright (c) 2003-2005 BMP development team.
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
7 *
2861
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
8 * Redistribution and use in source and binary forms, with or without
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
9 * modification, are permitted provided that the following conditions are
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
10 * met:
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
11 *
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
12 * 1. Redistributions of source code must retain the above copyright notice,
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
13 * this list of conditions and the following disclaimer.
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
14 *
2861
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
15 * 2. Redistributions in binary form must reproduce the above copyright
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
16 * notice, this list of conditions and the following disclaimer in the
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
17 * documentation and/or other materials provided with the distribution.
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
18 *
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
19 * 3. The name of the author may not be used to endorse or promote products
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
20 * derived from this software without specific prior written permission.
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
21 *
2861
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
22 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
23 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
24 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
25 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
26 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
27 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
28 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
30 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
31 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
7d3beedf1db8 BSD relicensing (pass 2).
William Pitcock <nenolod@atheme.org>
parents: 2313
diff changeset
32 * POSSIBILITY OF SUCH DAMAGE.
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
33 */
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
34
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
35 #ifndef BMP_GLADE_H
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
36 #define BMP_GLADE_H
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
37
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
38 #include <glib.h>
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
39 #include <gtk/gtk.h>
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
40 #include <glade/glade.h>
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
41
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
42
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
43 typedef struct _FuncMap FuncMap;
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
44
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
45 struct _FuncMap {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
46 gchar *name;
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
47 GCallback function;
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
48 };
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
49
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
50
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
51 #define FUNC_MAP_BEGIN(map) static FuncMap map[] = {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
52 #define FUNC_MAP_ENTRY(function) { #function, (GCallback) function },
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
53 #define FUNC_MAP_END { NULL, NULL } };
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
54
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
55
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
56 GladeXML *glade_xml_new_or_die(const gchar * name, const gchar * path,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
57 const gchar * root, const gchar * domain);
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
58
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
59 GtkWidget *glade_xml_get_widget_warn(GladeXML * xml, const gchar * name);
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
60
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
61 void glade_xml_signal_autoconnect_map(GladeXML * xml, FuncMap * map);
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
62
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
63 #endif