[Xfc-dev] A little help
Ricardo M
tareasrick at yahoo.com.mx
Thu May 4 17:01:25 CEST 2006
Hi Benedikt
Thank you very much for your support
I've tried your approach, but i have a "Segmentation
Fault" on runtime. I've changed your suggest, making a
new ListStore class, with a constructor with your code
of course, but after compile, the first time to run,
works fine, but just another run and crash it again!
I can't see my mistake
Can you help me?
Thanks in advance
--- Benedikt Meurer
<benedikt.meurer at unix-ag.uni-siegen.de> escribió:
> Ricardo M wrote:
> > Thank you Benedikt
> >
> > I've made it, and works!
> >
> > But what i'm trying to make is a dinamically
> treeview
> > to show the content of a different tables, that's
> why
> > i wanted to use the tutorial approach.
>
> You'll need different Gtk::ListStores for each table
> then (and a
> different Gtk::TreeViewColumns setup). To
> dynamically allocate the
> columns, just use:
>
> Gtk::ListStore* create_store (int n_columns)
> {
> GType types[n_columns];
>
> for (int n = 0; n < n_columns; ++n)
> types[n] = G_TYPE_STRING;
>
> return new Gtk::ListStore (n_columns, types);
> }
>
> > Thanks!
>
> Benedikt
> _______________________________________________
> Xfc-dev mailing list
> Xfc-dev at xfce.org
> http://foo-projects.org/mailman/listinfo/xfc-dev
>
___________________________________________________________
Do You Yahoo!?
La mejor conexión a Internet y <b >2GB</b> extra a tu correo por $100 al mes. http://net.yahoo.com.mx
More information about the Xfc-dev
mailing list