test data sent from hook file, square insert implemented
[lttv.git] / ltt / branches / poly / lttv / modules / guiControlFlow / Process_List.c
index 2e416d078352334274cd5d59a426b33746d9ef38..a9da1fda4afc36ff21cdf38ef1b28e0d0ac26c11 100644 (file)
@@ -8,27 +8,6 @@
  *                       Methods to synchronize process list                 *
  *****************************************************************************/
 
-typedef struct _ProcessInfo {
-       
-       guint pid;
-       LttTime birth;
-
-} ProcessInfo;
-
-
-struct _ProcessList {
-       
-       GtkWidget *Process_List_VC;
-       GtkListStore *Store_M;
-
-       /* A hash table by PID to speed up process position find in the list */
-       GHashTable *Process_Hash;
-       
-       guint Number_Of_Process;
-
-};
-
-
 /* Enumeration of the columns */
 enum
 {
@@ -153,93 +132,6 @@ gint process_sort_func     (       GtkTreeModel *model,
 
 }
 
-void send_test_data(ProcessList *Process_List)
-{
-       guint height;
-       int i;
-       ProcessInfo Process_Info = {10000, 12000, 55600};
-       //ProcessInfo Process_Info = {156, 14000, 55500};
-       GtkTreeRowReference *got_RowRef;
-
-       LttTime birth;
-       birth.tv_sec = 12000;
-       birth.tv_nsec = 55500;
-
-       ProcessList_add(Process_List,
-                       1,
-                       &birth,
-                       &height);
-
-       g_critical("height : %u", height);
-       
-       birth.tv_sec = 14000;
-       birth.tv_nsec = 55500;
-
-       ProcessList_add(Process_List,
-                       156,
-                       &birth,
-                       &height);
-
-       g_critical("height : %u", height);
-
-       birth.tv_sec = 12000;
-       birth.tv_nsec = 55700;
-
-       ProcessList_add(Process_List,
-                       10,
-                       &birth,
-                       &height);
-
-       for(i=0; i<10; i++)
-       {
-               birth.tv_sec = i*12000;
-               birth.tv_nsec = i*55700;
-
-               ProcessList_add(Process_List,
-                               i,
-                               &birth,
-                               &height);
-
-       }
-       g_critical("height : %u", height);
-
-       birth.tv_sec = 12000;
-       birth.tv_nsec = 55600;
-
-       ProcessList_add(Process_List,
-                       10,
-                       &birth,
-                       &height);
-       g_critical("height : %u", height);
-
-       ProcessList_add(Process_List,
-                       10000,
-                       &birth,
-                       &height);
-       g_critical("height : %u", height);
-
-
-       ProcessList_remove(     Process_List,
-                               10000,
-                               &birth);
-       
-       if(got_RowRef = 
-               (GtkTreeRowReference*)g_hash_table_lookup(
-                                       Process_List->Process_Hash,
-                                       &Process_Info))
-       {
-               g_critical("key found");
-               g_critical("position in the list : %s",
-                       gtk_tree_path_to_string (
-                       gtk_tree_row_reference_get_path(
-                               (GtkTreeRowReference*)got_RowRef)
-                       ));
-               
-       }
-
-}
-
-
 guint hash_fct(gconstpointer key)
 {
        return ((ProcessInfo*)key)->pid;
@@ -361,8 +253,6 @@ ProcessList *ProcessList_construct(void)
                        Process_List,
                        (GDestroyNotify)ProcessList_destroy);
                        
-       send_test_data(Process_List);
-
        return Process_List;
 }
 void ProcessList_destroy(ProcessList *Process_List)
This page took 0.023561 seconds and 4 git commands to generate.