From: compudj Date: Sat, 14 Aug 2004 21:32:07 +0000 (+0000) Subject: inlining link fix X-Git-Tag: v0.12.20~2725 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e465474eb70e83087e79cb04a4be5d3befd8bb36;p=lttv.git inlining link fix git-svn-id: http://ltt.polymtl.ca/svn@764 04897980-b3bd-0310-b5e0-8ef037075253 --- 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,