[Glade-users] Can I hide the .xml file?

On Wed, 11 Feb 2009 14:24:22 -0500, Tristan Van Berkom <tvb at gnome.org> wrote:
On Wed, Feb 11, 2009 at 1:45 PM, Charlie Brune <glade at bruneworld.com>

Hello!  I'm a beginner at coding glade/gtk applications using C.

My question:  Is it possible to use Glade to design an application and
NOT have
to supply my customers with the .xml file that Glade creates?

I don't want my customers seeing it because I'm concerned that they'll
it to alter the design of the GUI.

Ideally, the xml could be in an include file.  That way, it could just
compiled into the program.

Sure, use a const gchar * buffer and add it with

Juan might have a script lying around, but it should be easy for you to
a Glade file into a const char buffer to include statically in your code
a sed script or even just a little bash...



Thanks!!!  That works great.

I ended up writing a little program to take the .xml file and converting it to a gchar * buffer.  As you 
state, I probably could have done it with sed in a bash script.

I love this stuff.  8-)

Charlie Brune

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