Re: include glade-Files in executable



Hi,

I have used the following sed script to set the glade script equal to a glib::ustring and then include in cpp file with #include. Must declare the variable in .h file.

#! /usr/local/bin/bash
# usage: "sedscript filename" remove the .glade extension. .glade file must be in the project
# glade dir and new file will be in the project include dir.

echo $1_glade = > include/$1_glade.h;
sed -e s/\"/\'/g -e s/^/\"/g -e s/$/\"/g glade/$1.glade >> include/$1_glade.h;
echo ';' >> include/$1_glade.h;


Bruce


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]