X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Fcontrolflow%2Fprocesslist.h;h=ebb32a30236e73c88f8be3e9570e82df761fa0aa;hb=e465474eb70e83087e79cb04a4be5d3befd8bb36;hp=f0c8fbdd3f6c07da7ec189145e958e3c3c7852bc;hpb=682ad594a3f47bd1bb7a708f202ba40b74d84f13;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h index f0c8fbdd..ebb32a30 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h @@ -113,6 +113,25 @@ int processlist_remove(ProcessList *process_list, guint pid, guint cpu, LttTime *birth, guint trace_num); + + + +static inline gint get_cell_height(ProcessList *process_list, + GtkTreeView *tree_view) +{ + gint height = process_list->cell_height_cache; + if(height != -1) return height; + else { + GtkTreeViewColumn *Column = gtk_tree_view_get_column(tree_view, 0); + + gtk_tree_view_column_cell_get_size(Column, NULL, NULL, NULL, NULL, + &process_list->cell_height_cache); + } + return process_list->cell_height_cache; +} + + + static inline guint processlist_get_height(ProcessList *process_list) { return get_cell_height(process_list,