warning fixed for lttvwindow and controlflow view
[lttv.git] / ltt / branches / poly / lttv / modules / gui / controlflow / processlist.h
index f0c8fbdd3f6c07da7ec189145e958e3c3c7852bc..03da021d79015711b7c1dcb1ab35ce18b6b0fe43 100644 (file)
@@ -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,
@@ -126,8 +145,6 @@ static inline HashedProcessData *processlist_get_process_data(
           guint pid, guint cpu, LttTime *birth, guint trace_num)
 {
   ProcessInfo process_info;
-  gint *path_indices;
-  GtkTreePath *tree_path;
 
   process_info.pid = pid;
   if(pid == 0)
This page took 0.02349 seconds and 4 git commands to generate.