diff options
author | Keith Packard <keithp@keithp.com> | 2009-05-17 23:13:20 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-05-17 23:13:20 -0700 |
commit | f301b95e87c8ec1e3b58d595a05d486bede5e0c2 (patch) | |
tree | e68e300b01cb153c99e8b56a2a63388e8aacf60a /aoview/aoview_main.c | |
parent | 26361686d6fc63dc22d22285f0543c5c2c756fb4 (diff) |
Embed glade file in executable
This eliminates install issues nicely.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'aoview/aoview_main.c')
-rw-r--r-- | aoview/aoview_main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/aoview/aoview_main.c b/aoview/aoview_main.c index e2164e05..a3dc9544 100644 --- a/aoview/aoview_main.c +++ b/aoview/aoview_main.c @@ -17,6 +17,10 @@ #include "aoview.h" +static const char aoview_glade[] = { +#include "aoview_glade.h" +}; + static void usage(void) { printf("aoview [--device|-d device_file]"); exit(1); @@ -57,7 +61,8 @@ int main(int argc, char **argv) gtk_init(&argc, &argv); glade_init(); - xml = glade_xml_new("aoview.glade", NULL, NULL); + xml = glade_xml_new_from_buffer(aoview_glade, sizeof (aoview_glade), NULL, NULL); + /* connect the signals in the interface */ glade_xml_signal_autoconnect(xml); |