[Glade-devel] using glade_xml_construct
- From: taf2 lehigh edu (todd)
- Subject: [Glade-devel] using glade_xml_construct
- Date: Thu, 15 Apr 2004 14:08:34 -0400
This is a multi-part message in MIME format.
--------------050604030604090200040201
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Another, question in regards to libglade usage. i've been running my
application with valigrind 1.0.0
and am finding a consistent leakage from libglade.
==7417== 576 bytes in 24 blocks are definitely lost in loss record 107
of 156
==7417== at 0xD11958: calloc (vg_replace_malloc.c:284)
==7417== by 0x5F35AE: g_malloc0 (in /usr/lib/libglib-2.0.so.0.400.0)
==7417== by 0x80226C: (within /usr/lib/libglade-2.0.so.0.0.3)
==7417== by 0x2D336D: xmlParseDocument (in /usr/lib/libxml2.so.2.6.8)
This is even there when i do something like this at the end of my app to
ensure the GladeXML object is freed
while( G_OBJECT( xlink->view_dom )->ref_count > 1 ){
g_object_unref( xlink->view_dom );
}
g_object_unref( xlink->view_dom );
-todd
todd wrote:
Hi,
I'd like to load multiple glade files and construct a single
GladeXML *ptr. Is it correct to use glade_xml_construct to do so?
For example;
GtkWidget *widget;
GladeXML *xml;
xml = glade_xml_new( "file.glade", NULL, NULL ); // contains a widget
named foo1
glade_xml_construct( xml, "file2.glade", NULL, NULL ); // contains a
widget named foo2
// then i can i
widget = glade_xml_get_widget( xml, "foo1" );
// do something with widget
widget = glade_xml_get_widget( xml, "foo2" );
// do something with widget
Is this correct usage of libglade? Further is this safe usage?
-todd
--------------050604030604090200040201
Content-Type: text/x-vcard; charset=utf8;
name="taf2.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="taf2.vcf"
begin:vcard
fn:Todd Fisher
n:Fisher;Todd
email;internet:taf2 lehigh edu
x-mozilla-html:FALSE
url:http://severna.homeip.net
version:2.1
end:vcard
--------------050604030604090200040201--
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]