Well, that's why you was wrong as I said, don't keep only one GtkTreeModel
for storing the data, I mean you should have multiple GtkTreeModels. Please
read again more detail in Gtk documents.

On Mon, Mar 19, 2018, 19:00 Bachsau <w...@bachsau.name> wrote:

> I'm sorry, but I think I don't understand what you're trying to tell me,
> as I think this is how I already do it.
>
> I have a working Application managing a bunch of data represented by a
> list of items with several attributes. These items are displayed to the
> user by using a GtkTreeView backed by a GtkListStore, to which I append
> those items.
>
> Now I want to expand my application to manage not just one but several
> bunches of those data, each in a different tab inside the same window.
>
> As I understand it, the GtkTreeView widget is really just a display
> element, taking all of its data from the GtkListStore. This is why I
> thought I could just create and keep a separate GtkListStore in memory
> for every bunch of data and assign them to the one GtkTreeView widget
> whenever the user clicks a button.
>
>
> Am 19.03.2018 um 05:39 schrieb Lucky B.C:
> > Hi, you're wrong about GtkTreeView did! Let's have more detail about
> > what a GtkTreeView
> > <https://developer.gnome.org/gtk3/stable/GtkTreeView.html> can do, here
> > we go:
> >
> > 1) GtkTreeView can use more one GtkTreeModel
> > <https://developer.gnome.org/gtk3/stable/GtkTreeModel.html>.
> >
> > 2) GtkTreeModel is implemented by GtkListStore
> > <https://developer.gnome.org/gtk3/stable/GtkListStore.html>,
> > GtkTreeModelFilter
> > <https://developer.gnome.org/gtk3/stable/GtkTreeModelFilter.html>,
> > GtkTreeModelSort
> > <https://developer.gnome.org/gtk3/stable/GtkTreeModelSort.html> and
> > GtkTreeStore <https://developer.gnome.org/gtk3/stable/GtkTreeStore.html
> >.
> >
> > 3) GtkList ... GtkTreeStore are what you need in the case.
> >
> >
> > On Mon, Mar 19, 2018 at 4:21 AM, Bachsau <w...@bachsau.name
> > <mailto:w...@bachsau.name>> wrote:
> >
> >     Hi, I'm currently developing an app that uses two panes in its main
> >     window, each containing a "TreeView". Now it shall be capable of
> >     showing the contents of several different files in tabs. But using a
> >     "Notebook" would require me to have a distinct copy of the "Paned"
> >     and "TreeView" widgets on every page of the Notebook. I don't really
> >     like that and had the idea of using a "ButtonBox" with radio buttons
> >     instead, which just swap the "ListStore"s displayed by the
> "TreeView"s.
> >
> >     What do you think of this idea and is there a way to make the radio
> >     buttons look like default "Notebook" tabs?
> >
> >     Thanks in advance,
> >     Bachsau
> >
> >
> >     _______________________________________________
> >     gtk-app-devel-list mailing list
> >     gtk-app-devel-list@gnome.org <mailto:gtk-app-devel-list@gnome.org>
> >     https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
> >     <https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list>
> >
> >
>
>
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to