After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 150619 - libglade-2.0 interface should provide glade_xml_new_from_fd
libglade-2.0 interface should provide glade_xml_new_from_fd
Status: RESOLVED DUPLICATE of bug 95315
Product: libglade
Classification: Deprecated
Component: general
CVS HEAD
Other All
: Normal enhancement
: ---
Assigned To: James Henstridge
James Henstridge
Depends on:
Blocks:
 
 
Reported: 2004-08-20 08:27 UTC by Todd A. Fisher
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Todd A. Fisher 2004-08-20 08:27:12 UTC
This type of interface could be very useful to programs that might want to do
some preprocessing to their glade file before loading.  It certainly does not
hurt to provide it.

GladeXML *glade_xml_new_from_fd( int fd, const char *root, const char *domain);

Of course, this would probably require bug #136780 be resolved first, since an
interface like this does not provide a filename either.  The nice thing about 
this is it makes it possible to package a glade file with a binary and load it
at runtime from the binary.  In otherwords it would make it possible to use 
glade but still only have to distribute a single file.
Comment 1 James Henstridge 2004-11-09 07:13:12 UTC
I'm not sure how a file descriptor interface like this would help you with
preprocessing.  You can already load XML from a memory buffer, which should do
what you want.
 
This just leaves the issue of loading additional files such as images, so I'm
marking this bug as duplicate.

*** This bug has been marked as a duplicate of 95315 ***