auto interest transfer try #2

Kevin Finn kevinfinn@mediaone.net
Sun, 17 Jun 2001 00:57:37 -0500


Dave Peticolas wrote:
> 
> On 17 Jun 2001 00:32:22 -0500, Kevin Finn wrote:
> >      I can't seem to get a build right now, but the build I did with
> > these changes before merging up to CVS worked OK, so I'll send it in.  I
> 
> I'm not sure why your build is failing -- nothing was changed wrt to
> g-wrap lately.

     Well, maybe it's time for a totally clean build.  Here goes...

> > noticed that dialog-transfer has been converted to glade; right now some
> > of the stuff I added is still using gtk_object_get_data rather than
> > gnc_glade_xml_new/glade_xml_get_widget; I wasn't sure if it was a great
> > idea to read in the whole XML document just to hunt down one widget.  If
> > it's a big deal, maybe we could store the Glade_XML in the XferDialog
> > and use it as needed?
> 
> That's not how it works. The xml file is only read in once
> and the xml object persists with the widget tree.

    That would be the smart way to do it, I guess.  I hadn't yet tracked
down any documentation on how libglade works.

> Please use the glade api or the wrapped glade api to get
> widgets -- using gtk_object_get_data was always kind of
> a hack that depended on the glade/libglade implementation.
> 
> I will go ahead an convert your calls so you don't need
> to submit another patch.

     Thanks a lot!  I think there are only one or two calls at the end
of dialog-transfer.c; I'll use the glade interface in the future.

-- 

Kevin Finn
kevinfinn@mediaone.net