Re: Gnome::Glade::Xml::create_from_buffer question
- From: Max Vasin <max-appolo mail ru>
- To: gtkmm-list gnome org
- Subject: Re: Gnome::Glade::Xml::create_from_buffer question
- Date: Wed, 18 Jan 2006 23:26:12 +0300
>>>>> "Bob" == Bob Caryl <bob fis-cal com> writes:
Bob> Hi guys, I am using Glade version 2.10.0 and libglademm-2.4
Bob> (2.6.1). Because I do not want my application to be dependent on
Bob> loading anything at run time, I decided to use
Bob> Gnome::Glade::Xml::create_from_buffer in order to bring my UI
Bob> into my application. This question is probably off topic, but I
Bob> cannot seem to figure out how to make glade output anything that
Bob> can be included in my application (like a ".h" file) that can be
Bob> used in conjunction with the aforementioned creation routine.
Bob> If I'm off topic, the please give me a hint as to which list I
Bob> need to consult.
Bob> Btw, I wrote my own little helper application that reads the
Bob> ".glade" file and creates a ".h" file with this format:
Bob> const char *<desired pointer name> = " // all xml code content
Bob> from glade in here with newlines and beginning line whitespace
Bob> stripped out, // and with all double quotes converted to single
Bob> quotes ";
Bob> The reason I want to use the native "Glade way" to do this is
Bob> that I do not want other programmers in my organization to have
Bob> to use my conversion application if possible.
Bob, I think the best solution is to use make to automate generation
of your glade .h file, more over your conversion app can be entirely
placed into the Makefile. This is a Unix way to make things done.
--
WBR,
Max Vasin.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]