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

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

 



Hi Kris!

On Dec 22, 2007 1:10 AM, Kristian Rietveld <kris@xxxxxxxxxxx> 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@xxxxxxxxx>
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux