Re: how to change height of selected row in a tree view



Hi Kris!

On Dec 22, 2007 1:10 AM, Kristian Rietveld <kris imendio com> wrote:
> On Fri, Dec 21, 2007 at 12:47:20PM +0300, Yuri Arapov wrote:
> > I tried to install proper callback function with
> >
> >   gtk_tree_view_column_set_cell_data_func()
> >
> > where I change the height of cell renderer calling
> >
> >   g_object_set(renderer, "height", selected_row_height, NULL);
> >
> > but it did not take effect.  But somehow row's height is updated
> > when entire tree view is re-arranged (for example, when one
> > double-clicks vertical separator line between header cells).
>
> Try calling gtk_tree_model_row_changed() with the row that needs to
> change height as the path and iter arguments.  This will cause the
> GtkTreeView to remeasure and redraw that row.

Thanks a lot, it works just great now.

All the best,

Yuri

-- 
Yuri Arapov    <yuridichesky gmail com>


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