Re: how to change height of selected row in a tree view
- From: Kristian Rietveld <kris imendio com>
- To: Yuri Arapov <yuridichesky gmail com>
- Cc: gtk-list gnome org
- Subject: Re: how to change height of selected row in a tree view
- Date: Fri, 21 Dec 2007 23:10:04 +0100
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.
regards,
-kris.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]