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
|
|
6 * the Free Software Foundation; either version 2 of the License, or
|
|
7 * (at your option) any later version.
|
|
8 *
|
|
9 * This program is distributed in the hope that it will be useful,
|
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12 * GNU General Public License for more details.
|
|
13 *
|
|
14 * You should have received a copy of the GNU General Public License
|
|
15 * along with this program; if not, write to the Free Software
|
|
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
17 */
|
|
18
|
|
19 #ifndef BMP_GLADE_H
|
|
20 #define BMP_GLADE_H
|
|
21
|
|
22 #include <glib.h>
|
|
23 #include <gtk/gtk.h>
|
|
24 #include <glade/glade.h>
|
|
25
|
|
26
|
|
27 typedef struct _FuncMap FuncMap;
|
|
28
|
|
29 struct _FuncMap {
|
|
30 gchar *name;
|
|
31 GCallback function;
|
|
32 };
|
|
33
|
|
34
|
|
35 #define FUNC_MAP_BEGIN(map) static FuncMap map[] = {
|
|
36 #define FUNC_MAP_ENTRY(function) { #function, (GCallback) function },
|
|
37 #define FUNC_MAP_END { NULL, NULL } };
|
|
38
|
|
39
|
|
40 GladeXML *glade_xml_new_or_die(const gchar * name, const gchar * path,
|
|
41 const gchar * root, const gchar * domain);
|
|
42
|
|
43 GtkWidget *glade_xml_get_widget_warn(GladeXML * xml, const gchar * name);
|
|
44
|
|
45 void glade_xml_signal_autoconnect_map(GladeXML * xml, FuncMap * map);
|
|
46
|
|
47 #endif
|