Mercurial > audlegacy
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 |
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 | 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 | 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 | 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 | 33 */ |
34 | |
35 #ifndef BMP_GLADE_H | |
36 #define BMP_GLADE_H | |
37 | |
38 #include <glib.h> | |
39 #include <gtk/gtk.h> | |
40 #include <glade/glade.h> | |
41 | |
42 | |
43 typedef struct _FuncMap FuncMap; | |
44 | |
45 struct _FuncMap { | |
46 gchar *name; | |
47 GCallback function; | |
48 }; | |
49 | |
50 | |
51 #define FUNC_MAP_BEGIN(map) static FuncMap map[] = { | |
52 #define FUNC_MAP_ENTRY(function) { #function, (GCallback) function }, | |
53 #define FUNC_MAP_END { NULL, NULL } }; | |
54 | |
55 | |
56 GladeXML *glade_xml_new_or_die(const gchar * name, const gchar * path, | |
57 const gchar * root, const gchar * domain); | |
58 | |
59 GtkWidget *glade_xml_get_widget_warn(GladeXML * xml, const gchar * name); | |
60 | |
61 void glade_xml_signal_autoconnect_map(GladeXML * xml, FuncMap * map); | |
62 | |
63 #endif |