Re: Gnome::Glade::Xml::create_from_buffer question
- From: Bob Caryl <bob fis-cal com>
- To: Max Vasin <max-appolo mail ru>
- Cc: gtkmm-list gnome org
- Subject: Re: Gnome::Glade::Xml::create_from_buffer question
- Date: Thu, 19 Jan 2006 07:54:55 -0600
Max Vasin wrote:
"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.
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
Thanks for the comments Max, but I had already inserted a target that
handles the conversion of my .glade file into my make file.
Bob
begin:vcard
fn:Robert Caryl
n:Caryl;Robert
org:Fiscal Systems, Inc.
adr:;;102 Commerce Circle;Madison;AL;35758;USA
email;internet:bob fis-cal com
title:Senior Software Design Engineer
tel;work:356-772-8920 X108
x-mozilla-html:TRUE
url:http://www.fis-cal.com
version:2.1
end:vcard
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]