Hi all
I have one problem that current Glade 0.5.7 isn't able to automatically
generate {interface,support}.[ch] files (and other source files). To do it, one
must run the GUI and manually click on the menu - this isn't suitable for usea
from Makefile-s. And importing this files to CVS isn't nice or wised.
If such option on this list were discussed some time ago, I'm sorry. I'm
really not able to scan the whole list archive as I'm new to this mailing list.
To solve this, I made a very simple patch to Glade 0.5.7 to support
"--writesource" option. Unfortunately due to Glade design some X server must
be available for a moment. Currently it is solved by smart logic in
configure.in trying to find some accessible X DISPLAY and if not available it
tries to find and use at least Xvnc.
I've just started to look into Glade sources so please apologize potentially
stupid question: It appears to me that modifying Glade to not to be dependant
on functional X server (due to needed GTK/GDK objects) simply isn't much
easy/possible as it would require some major modifications in Glade objects
structure. Current X server or Xvnc dependency during "make" with --writesource
usage is acceptable but very inconvenient.
If this dependency on X server really isn't preventable, I will make more
publically usable my current configure.in macros for X server / Xvnc detection
and usage. [Currently GPL of course, but not ready for public use.]
Note: Non-gnome usability of this patch wasn't yet tested, sorry about that.
---
My next patch (partially written) would be the ability to create Button with
a complex content. Standard Button will be empty by default, during creation it
would automatically create a child object Label (to keep compatibilty and
comfortability of Glade usage). This Label would be easily deleted and replaced
by some [HV]Boxes etc. instead, if needed. It would do such conversion
(Button->Button+Label) during open from older .glade file automatically, the
question is whether it should also try to keep compatibility with older (non
new-Button enhanced) Glades during write of .glade file. I don't think this
compatibility is needed and it is more a hack than systematic design, I'm
personally against it.
BTW "libglade" existency gives a completely new scale to Glade!
Thanks for the useful tool,
Jan Kratochvil
--
Jan Kratochvil
software developer
--------------------------------------------------------------------------
SuSE CR, s.r.o. e-mail: [EMAIL PROTECTED]
Pod Pekarnami 338/12 GSM phone: +420 602 431329
190 00 Prague 9 - Vysocany company: +420 2 6603 2619
Czech Republic http://www.suse.cz
--------------------------------------------------------------------------
glade-0.5.7-writesource.diff.gz