[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtkmm
Subject:    Re: include glade-Files in executable
From:       Jacob Georg Benz <post () hauslandbibliothek ! de>
Date:       2011-09-30 17:26:55
Message-ID: 20110930192655.0a7212ec () hauslandbibliothek ! de
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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/$1.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)!

Jacob
-- 
Bitte sende mir/senden Sie mir keine Dateien in einem proprietären
Dateiformat(z.B. Microsoft Word, Exel) zu.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Meinen GnuPG-Schlüssel findest du/finden Sie hier:
http://derrevolutionaer.de/index.php?/pages/gnupg.html

["signature.asc" (application/pgp-signature)]

_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic