summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Poole <netstar@gmail.com>2020-05-18 22:31:40 +0100
committerAlastair Poole <netstar@gmail.com>2020-05-18 22:31:40 +0100
commiteb428dc6e50cdc648db212b0dadb7e55c171893e (patch)
treebfbcbcdf7610a36aa22fdd82094fb4e69648e025
parent6b46fcea2a4e129679509de120027ec2d5c12c40 (diff)
proc_view: tidy...
-rw-r--r--src/bin/ui/ui_process_view.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bin/ui/ui_process_view.c b/src/bin/ui/ui_process_view.c
index 9aa172b..931e630 100644
--- a/src/bin/ui/ui_process_view.c
+++ b/src/bin/ui/ui_process_view.c
@@ -60,9 +60,9 @@ _item_unrealized_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info E
60 elm_genlist_item_all_contents_unset(event_info, &contents); 60 elm_genlist_item_all_contents_unset(event_info, &contents);
61 61
62 EINA_LIST_FREE(contents, o) 62 EINA_LIST_FREE(contents, o)
63 { 63 {
64 evisum_ui_item_cache_item_release(ui->cache, o); 64 evisum_ui_item_cache_item_release(ui->cache, o);
65 } 65 }
66} 66}
67 67
68static void 68static void
@@ -278,11 +278,10 @@ _hash_free_cb(void *data)
278static void 278static void
279_thread_info_set(Ui_Process *ui, Proc_Info *proc) 279_thread_info_set(Ui_Process *ui, Proc_Info *proc)
280{ 280{
281 Eina_List *l;
282 Proc_Info *p; 281 Proc_Info *p;
283 Thread_Info *t; 282 Thread_Info *t;
284 Elm_Object_Item *it; 283 Elm_Object_Item *it;
285 Eina_List *threads = NULL; 284 Eina_List *l, *threads = NULL;
286 285
287 if (!ui->hash_cpu_times) 286 if (!ui->hash_cpu_times)
288 ui->hash_cpu_times = eina_hash_string_superfast_new(_hash_free_cb); 287 ui->hash_cpu_times = eina_hash_string_superfast_new(_hash_free_cb);
@@ -322,7 +321,8 @@ _thread_info_set(Ui_Process *ui, Proc_Info *proc)
322 EINA_LIST_FOREACH(threads, l, t) 321 EINA_LIST_FOREACH(threads, l, t)
323 { 322 {
324 Thread_Info *prev = elm_object_item_data_get(it); 323 Thread_Info *prev = elm_object_item_data_get(it);
325 if (prev) _item_del(prev, NULL); 324 if (prev)
325 _item_del(prev, NULL);
326 elm_object_item_data_set(it, t); 326 elm_object_item_data_set(it, t);
327 elm_genlist_item_update(it); 327 elm_genlist_item_update(it);
328 it = elm_genlist_item_next_get(it); 328 it = elm_genlist_item_next_get(it);