jana-gtk-utils

jana-gtk-utils

Synopsis

void                jana_gtk_utils_treeview_resize      (GtkWidget *tree_view,
                                                         GtkAllocation *allocation,
                                                         gpointer cell_renderer);

Description

Details

jana_gtk_utils_treeview_resize ()

void                jana_gtk_utils_treeview_resize      (GtkWidget *tree_view,
                                                         GtkAllocation *allocation,
                                                         gpointer cell_renderer);

A convenience callback that can be used in conjunction with "size-allocate" that will set the cell renderer width to the width of the first column in tree_view. This can be useful if you want correctly sized rows when using JanaGtkCellRendererEvent or JanaGtkCellRendererNote.

tree_view :

A GtkTreeView

allocation :

The widget's allocated size

cell_renderer :

A GtkCellRenderer