Re: Glade and TreeView



Thank you so much !
This works :)

And I don't need header to be visible anyway.

On 7/13/05, Akbar <tuxer myrealbox com> wrote:
> On Wed, 2005-07-13 at 16:28 +0200, Nil Gradisnik wrote:
> > Yes thanks. I figure this one  out by myself :)
> >
> > The problem with treeview still remains.
> > The code is compiled OK and when I run there is nothing in treeview.
> > Why is that ?!
> >
> > Can you please examine my code again ? I have a new one.
> >
> > Your wallpapoz-0.1 source code has been really helpful, thanks.
> 
> First edit your sysinfo.glade file with text editor. Find this line:
>                   <property name="headers_visible">False</property>
> Change it to:
>                   <property name="headers_visible">True</property>
> 
> Edit your sysinfo.cc. Put this into "you know where":
>     m_refGlade->get_widget("treeview1", m_TreeView);
>     if(m_TreeView) {
>         m_refTreeModel = Gtk::ListStore::create(m_Columns);
>         m_TreeView->set_model(m_refTreeModel);
>         m_TreeView->append_column("Workspace", m_Columns.m_col1);
>         //m_TreeView->append_column("Wallpaper", m_Columns.m_col1);
>         Gtk::TreeModel::Row row = *(m_refTreeModel->append());
>         row[m_Columns.m_col1] = "Testing";
>     }
> 
> 
>



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