Re: setting lists of values in gconfmm



On Tue, 2006-10-31 at 13:06 -0500, Paul Davis wrote:
> On Tue, 2006-10-31 at 12:02 -0600, Matt Hoosier wrote:
> > I'm having some trouble tracing through all the templates in the
> > SListHandle to see how one is supposed to convert a mundane
> > std::vector<> into the SListHandle required by the various
> > Gnome::Conf::Client::set_XXX_list() methods.
> > 
> > Anybody know the right way to do this? Most examples I find cover the
> > case when wants to wrap a pre-existing GSList inside a SListHandle.
> 
> this totally confused me when i first encountered it, but then at some
> point i discovered that you can just use a std::slist and automatic
> conversion takes place. i think ....

Or a std::vector, or whatever you like:
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch03s05.html

Murray




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]