[Glade-users] generate .glade from source code?

Victor Rafael Rivarola Soerensen (FANATICO y LOCO por Cristo) vrrivaro at gmail.com
Thu Feb 16 07:53:02 EST 2006


2006/2/16, Mikael DUMONT <mikael.dumont at gmail.com>:
> Hello everybody,

Hello.

...

>  Is there a way to re-generate them from the source code or am I condemned
> to recreate all the interface?

From the source code, it could be imposible: it is very  easy to write
code only for the active controls in your program and leave behind
labels and other useless (for the functionality) features.

On the other hand, from your object code it could be done if you where
embeding your .glade file as a resource and ending up with a binary
that doesn't requires the precense of the .glade   on disk. If you
happened to be doing this, you would simply have to extract your
resource from you compiled binary, and you would end up with the same
file(s) that you used to make the binary. How you this (or if it is
possible at all) depends on your programming language. I know in C# it
is possible (and MonoDevelop does it by default), but is is perhaps
also posible in C, C++, Java, etc. I would tend to beleive it not
possible in any interpreted languaje (PHP, Python, Ruby, Perl, etc).

Jesus bless you,

Víctor Rafael Rivarola

--
FANÁTICO
"Por cuanto eres tibio, y no frío ni caliente, te vomitaré de mi boca."
Apocalipsis 3:16

LOCO
"Porque la Palabra de la Cruz es locura para los que se pierden; pero a
los que se salvan, esto es, a nosotros, es poder de Dios."
1 Corintios 1:18


More information about the Glade-users mailing list