Re: include glade-Files in executable

Am Mittwoch, den 21.09.2011 um 09:44 schrieb Bruce Meier:
> 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/$ >> 
> include/$1_glade.h;
> echo ';' >> include/$1_glade.h;

Thanks, this works perfect for me (and solves so the disturbing
problem that gladfiles have to be distributed separately)!

Bitte sende mir/senden Sie mir keine Dateien in einem proprietären
Dateiformat(z.B. Microsoft Word, Exel) zu.

Meinen GnuPG-Schlüssel findest du/finden Sie hier:

Attachment: signature.asc
Description: PGP signature

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