Remove reference to thread brand
[lttv.git] / lttv / modules / gui / controlflow / processlist.c
index 506dae1cc279b23589de399a05ef7316e414283b..2cf4426a3698a22e5f31cf80dc5ed37c19e84497 100644 (file)
@@ -47,13 +47,11 @@ gint process_sort_func  ( GtkTreeModel *model,
         gpointer user_data)
 {
   gchar *a_name;
-  gchar *a_brand;
   guint a_pid, a_tgid, a_ppid, a_cpu;
   gulong a_birth_s, a_birth_ns;
   guint a_trace;
 
   gchar *b_name;
-  gchar *b_brand;
   guint b_pid, b_tgid, b_ppid, b_cpu;
   gulong b_birth_s, b_birth_ns;
   guint b_trace;
@@ -61,7 +59,6 @@ gint process_sort_func  ( GtkTreeModel *model,
   gtk_tree_model_get(model,
            it_a,
            PROCESS_COLUMN, &a_name,
-           BRAND_COLUMN, &a_brand,
            PID_COLUMN, &a_pid,
            TGID_COLUMN, &a_tgid,
            PPID_COLUMN, &a_ppid,
@@ -74,7 +71,6 @@ gint process_sort_func  ( GtkTreeModel *model,
   gtk_tree_model_get(model,
            it_b,
            PROCESS_COLUMN, &b_name,
-           BRAND_COLUMN, &b_brand,
            PID_COLUMN, &b_pid,
            TGID_COLUMN, &b_tgid,
            PPID_COLUMN, &b_ppid,
@@ -133,8 +129,10 @@ static gboolean process_list_equ_fct(gconstpointer a, gconstpointer b)
     ret = FALSE;
   if(likely((pa->pid == 0 && (pa->cpu != pb->cpu))))
     ret = FALSE;
-  if(unlikely(ltt_time_compare(pa->birth, pb->birth) != 0))
-    ret = FALSE;
+  //TODO ybrosseau 2012-09-18 Check if we want to reenable birth comparision
+  // We currently do not have valid birth info, so don't compare it
+  /*  if(unlikely(ltt_time_compare(pa->birth, pb->birth) != 0))
+      ret = FALSE;*/
   if(unlikely(pa->trace_num != pb->trace_num))
     ret = FALSE;
 
@@ -152,9 +150,8 @@ gboolean scroll_event(GtkWidget *widget, GdkEventScroll *event, gpointer data)
       (ControlFlowData*)g_object_get_data(
                 G_OBJECT(widget),
                 "control_flow_data");
-  Drawing_t *drawing = control_flow_data->drawing;
-       unsigned int cell_height =
-               get_cell_height(GTK_TREE_VIEW(control_flow_data->process_list->process_list_widget));
+  unsigned int cell_height =
+      get_cell_height(GTK_TREE_VIEW(control_flow_data->process_list->process_list_widget));
 
   switch(event->direction) {
     case GDK_SCROLL_UP:
@@ -168,7 +165,7 @@ gboolean scroll_event(GtkWidget *widget, GdkEventScroll *event, gpointer data)
     default:
       g_error("should only scroll up and down.");
   }
-       return TRUE;
+  return TRUE;
 }
 
 
@@ -355,7 +352,6 @@ ProcessList *processlist_construct(void)
 
   /* Create the Process list */
   process_list->list_store = gtk_list_store_new (  N_COLUMNS,
-              G_TYPE_STRING,
               G_TYPE_STRING,
               G_TYPE_UINT,
               G_TYPE_UINT,
@@ -424,17 +420,6 @@ ProcessList *processlist_construct(void)
   
   process_list->button = column->button;
  
-  column = gtk_tree_view_column_new_with_attributes ( "Brand",
-                renderer,
-                "text",
-                BRAND_COLUMN,
-                NULL);
-  gtk_tree_view_column_set_alignment (column, 0.0);
-  gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_GROW_ONLY);
-  gtk_tree_view_column_set_resizable(column, TRUE);
-  gtk_tree_view_append_column (
-    GTK_TREE_VIEW (process_list->process_list_widget), column);
-
   column = gtk_tree_view_column_new_with_attributes ( "PID",
                 renderer,
                 "text",
@@ -589,15 +574,6 @@ void processlist_set_name(ProcessList *process_list,
         -1);
 }
 
-void processlist_set_brand(ProcessList *process_list,
-    GQuark brand,
-    HashedProcessData *hashed_process_data)
-{
-  gtk_list_store_set (  process_list->list_store, &hashed_process_data->y_iter,
-        BRAND_COLUMN, g_quark_to_string(brand),
-        -1);
-}
-
 void processlist_set_tgid(ProcessList *process_list,
     guint tgid,
     HashedProcessData *hashed_process_data)
@@ -626,7 +602,6 @@ int processlist_add(  ProcessList *process_list,
       LttTime *birth,
       guint trace_num,
       GQuark name,
-      GQuark brand,
       guint *height,
       ProcessInfo **pm_process_info,
       HashedProcessData **pm_hashed_process_data)
@@ -684,7 +659,6 @@ int processlist_add(  ProcessList *process_list,
 
   gtk_list_store_set (  process_list->list_store, &hashed_process_data->y_iter,
         PROCESS_COLUMN, g_quark_to_string(name),
-        BRAND_COLUMN, g_quark_to_string(brand),
         PID_COLUMN, pid,
         TGID_COLUMN, tgid,
         PPID_COLUMN, ppid,
This page took 0.024546 seconds and 4 git commands to generate.