summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Poole <netstar@gmail.com>2020-05-23 13:51:26 +0100
committerAlastair Poole <netstar@gmail.com>2020-05-23 13:51:26 +0100
commit162e6b7a4185b8bdf5f8b9bd97238cdaedc1dddb (patch)
treeaca4b62412f77d38cfeb49303b56055e653c4d1d
parent01be01dd9714d9801fa1f36aee829943aa34809c (diff)
style: improve indentation (function params).
-rw-r--r--src/bin/main.c5
-rw-r--r--src/bin/system/machine.c44
-rw-r--r--src/bin/ui/ui.c88
-rw-r--r--src/bin/ui/ui_cache.c3
-rw-r--r--src/bin/ui/ui_process_view.c33
-rw-r--r--src/bin/ui/ui_process_view.h9
6 files changed, 111 insertions, 71 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index a09486a..aadf24e 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -9,7 +9,8 @@
9#include "ui/ui.h" 9#include "ui/ui.h"
10 10
11static void 11static void
12_win_del_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 12_win_del_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
13 void *event_info EINA_UNUSED)
13{ 14{
14 exit(0); 15 exit(0);
15} 16}
@@ -25,7 +26,7 @@ _win_add(void)
25 icon = elm_icon_add(win); 26 icon = elm_icon_add(win);
26 elm_icon_standard_set(icon, "evisum"); 27 elm_icon_standard_set(icon, "evisum");
27 elm_win_icon_object_set(win, icon); 28 elm_win_icon_object_set(win, icon);
28 evas_object_resize(win, EVISUM_SIZE_WIDTH * elm_config_scale_get(), 29 evas_object_resize(win, EVISUM_SIZE_WIDTH * elm_config_scale_get(),
29 EVISUM_SIZE_HEIGHT * elm_config_scale_get()); 30 EVISUM_SIZE_HEIGHT * elm_config_scale_get());
30 elm_win_title_set(win, _("Evisum: System Monitor")); 31 elm_win_title_set(win, _("Evisum: System Monitor"));
31 elm_win_center(win, EINA_TRUE, EINA_TRUE); 32 elm_win_center(win, EINA_TRUE, EINA_TRUE);
diff --git a/src/bin/system/machine.c b/src/bin/system/machine.c
index 2e18a88..45228ff 100644
--- a/src/bin/system/machine.c
+++ b/src/bin/system/machine.c
@@ -1,26 +1,26 @@
1/* 1/*
2 Copyright (c) 2017, Al Poole <netstar@gmail.com> 2 Copyright (c) 2017, Al Poole <netstar@gmail.com>
3 All rights reserved. 3 All rights reserved.
4 4
5 Redistribution and use in source and binary forms, with or without 5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are met: 6 modification, are permitted provided that the following conditions are met:
7 7
8 1. Redistributions of source code must retain the above copyright notice, this 8 1. Redistributions of source code must retain the above copyright notice, this
9 list of conditions and the following disclaimer. 9 list of conditions and the following disclaimer.
10 2. Redistributions in binary form must reproduce the above copyright notice, 10 2. Redistributions in binary form must reproduce the above copyright notice,
11 this list of conditions and the following disclaimer in the documentation 11 this list of conditions and the following disclaimer in the documentation
12 and/or other materials provided with the distribution. 12 and/or other materials provided with the distribution.
13 13
14 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 14 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
15 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 15 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 16 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 17 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
18 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 18 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 19 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 20 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
21 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 22 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
23 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26#define _DEFAULT_SOURCE 26#define _DEFAULT_SOURCE
diff --git a/src/bin/ui/ui.c b/src/bin/ui/ui.c
index cd20d19..b833705 100644
--- a/src/bin/ui/ui.c
+++ b/src/bin/ui/ui.c
@@ -292,7 +292,8 @@ _proc_pid_cpu_usage_get(Ui *ui, Proc_Info *proc)
292 { 292 {
293 if (tmp->cpu_time_prev && proc->cpu_time > tmp->cpu_time_prev) 293 if (tmp->cpu_time_prev && proc->cpu_time > tmp->cpu_time_prev)
294 { 294 {
295 proc->cpu_usage = (double) (proc->cpu_time - tmp->cpu_time_prev) / 295 proc->cpu_usage =
296 (double) (proc->cpu_time - tmp->cpu_time_prev) /
296 ui->poll_delay; 297 ui->poll_delay;
297 } 298 }
298 _proc_pid_cpu_time_save(ui, proc); 299 _proc_pid_cpu_time_save(ui, proc);
@@ -304,7 +305,8 @@ _proc_pid_cpu_usage_get(Ui *ui, Proc_Info *proc)
304} 305}
305 306
306static void 307static void
307_item_unrealized_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 308_item_unrealized_cb(void *data, Evas_Object *obj EINA_UNUSED,
309 void *event_info EINA_UNUSED)
308{ 310{
309 Ui *ui; 311 Ui *ui;
310 Evas_Object *o; 312 Evas_Object *o;
@@ -489,7 +491,8 @@ _genlist_ensure_n_items(Evas_Object *genlist, unsigned int items)
489 491
490 for (i = existing; i < items; i++) 492 for (i = existing; i < items; i++)
491 { 493 {
492 elm_genlist_item_append(genlist, itc, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL); 494 elm_genlist_item_append(genlist, itc, NULL, NULL,
495 ELM_GENLIST_ITEM_NONE, NULL, NULL);
493 } 496 }
494 497
495 elm_genlist_item_class_free(itc); 498 elm_genlist_item_class_free(itc);
@@ -510,7 +513,8 @@ _bring_in(Ui *ui)
510} 513}
511 514
512static void 515static void
513_process_list_feedback_cb(void *data, Ecore_Thread *thread EINA_UNUSED, void *msg EINA_UNUSED) 516_process_list_feedback_cb(void *data, Ecore_Thread *thread EINA_UNUSED,
517 void *msg EINA_UNUSED)
514{ 518{
515 Ui *ui; 519 Ui *ui;
516 Eina_List *list, *l, *l_next; 520 Eina_List *list, *l, *l_next;
@@ -526,8 +530,8 @@ _process_list_feedback_cb(void *data, Ecore_Thread *thread EINA_UNUSED, void *ms
526 EINA_LIST_FOREACH_SAFE(list, l, l_next, proc) 530 EINA_LIST_FOREACH_SAFE(list, l, l_next, proc)
527 { 531 {
528 if ((ui->search_text && ui->search_text[0] && 532 if ((ui->search_text && ui->search_text[0] &&
529 strncasecmp(proc->command, ui->search_text, strlen(ui->search_text))) || 533 strncasecmp(proc->command, ui->search_text, strlen(ui->search_text))
530 (!ui->show_self && proc->pid == ui->program_pid)) 534 ) || (!ui->show_self && proc->pid == ui->program_pid))
531 { 535 {
532 proc_info_free(proc); 536 proc_info_free(proc);
533 list = eina_list_remove_list(list, l); 537 list = eina_list_remove_list(list, l);
@@ -612,7 +616,8 @@ _btn_icon_state_set(Evas_Object *button, Eina_Bool reverse)
612} 616}
613 617
614static void 618static void
615_btn_pid_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 619_btn_pid_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
620 void *event_info EINA_UNUSED)
616{ 621{
617 Ui *ui = data; 622 Ui *ui = data;
618 623
@@ -630,7 +635,8 @@ _btn_pid_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info E
630} 635}
631 636
632static void 637static void
633_btn_uid_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 638_btn_uid_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
639 void *event_info EINA_UNUSED)
634{ 640{
635 Ui *ui = data; 641 Ui *ui = data;
636 642
@@ -648,7 +654,8 @@ _btn_uid_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info E
648} 654}
649 655
650static void 656static void
651_btn_cpu_usage_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 657_btn_cpu_usage_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
658 void *event_info EINA_UNUSED)
652{ 659{
653 Ui *ui = data; 660 Ui *ui = data;
654 661
@@ -666,7 +673,8 @@ _btn_cpu_usage_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_
666} 673}
667 674
668static void 675static void
669_btn_size_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 676_btn_size_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
677 void *event_info EINA_UNUSED)
670{ 678{
671 Ui *ui = data; 679 Ui *ui = data;
672 680
@@ -684,7 +692,8 @@ _btn_size_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info
684} 692}
685 693
686static void 694static void
687_btn_rss_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 695_btn_rss_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
696 void *event_info EINA_UNUSED)
688{ 697{
689 Ui *ui = data; 698 Ui *ui = data;
690 699
@@ -702,7 +711,8 @@ _btn_rss_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info E
702} 711}
703 712
704static void 713static void
705_btn_cmd_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 714_btn_cmd_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
715 void *event_info EINA_UNUSED)
706{ 716{
707 Ui *ui = data; 717 Ui *ui = data;
708 718
@@ -720,7 +730,8 @@ _btn_cmd_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info E
720} 730}
721 731
722static void 732static void
723_btn_state_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 733_btn_state_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
734 void *event_info EINA_UNUSED)
724{ 735{
725 Ui *ui = data; 736 Ui *ui = data;
726 737
@@ -738,13 +749,15 @@ _btn_state_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info
738} 749}
739 750
740static void 751static void
741_btn_quit_clicked_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 752_btn_quit_clicked_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
753 void *event_info EINA_UNUSED)
742{ 754{
743 exit(0); 755 exit(0);
744} 756}
745 757
746static void 758static void
747_item_menu_dismissed_cb(void *data EINA_UNUSED, Evas_Object *obj, void *ev EINA_UNUSED) 759_item_menu_dismissed_cb(void *data EINA_UNUSED, Evas_Object *obj,
760 void *ev EINA_UNUSED)
748{ 761{
749 Ui *ui = data; 762 Ui *ui = data;
750 763
@@ -754,7 +767,8 @@ _item_menu_dismissed_cb(void *data EINA_UNUSED, Evas_Object *obj, void *ev EINA_
754} 767}
755 768
756static void 769static void
757_item_menu_start_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 770_item_menu_start_cb(void *data, Evas_Object *obj EINA_UNUSED,
771 void *event_info EINA_UNUSED)
758{ 772{
759 Proc_Info *proc; 773 Proc_Info *proc;
760 774
@@ -765,7 +779,8 @@ _item_menu_start_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info E
765} 779}
766 780
767static void 781static void
768_item_menu_stop_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 782_item_menu_stop_cb(void *data, Evas_Object *obj EINA_UNUSED,
783 void *event_info EINA_UNUSED)
769{ 784{
770 Proc_Info *proc; 785 Proc_Info *proc;
771 786
@@ -776,7 +791,8 @@ _item_menu_stop_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EI
776} 791}
777 792
778static void 793static void
779_item_menu_kill_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 794_item_menu_kill_cb(void *data, Evas_Object *obj EINA_UNUSED,
795 void *event_info EINA_UNUSED)
780{ 796{
781 Proc_Info *proc; 797 Proc_Info *proc;
782 798
@@ -787,7 +803,8 @@ _item_menu_kill_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EI
787} 803}
788 804
789static void 805static void
790_item_menu_cancel_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 806_item_menu_cancel_cb(void *data, Evas_Object *obj EINA_UNUSED,
807 void *event_info EINA_UNUSED)
791{ 808{
792 Ui *ui = data; 809 Ui *ui = data;
793 810
@@ -796,7 +813,8 @@ _item_menu_cancel_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info
796} 813}
797 814
798static void 815static void
799_item_menu_priority_increase_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 816_item_menu_priority_increase_cb(void *data, Evas_Object *obj EINA_UNUSED,
817 void *event_info EINA_UNUSED)
800{ 818{
801 Proc_Info *proc = data; 819 Proc_Info *proc = data;
802 if (!proc) return; 820 if (!proc) return;
@@ -805,7 +823,8 @@ _item_menu_priority_increase_cb(void *data, Evas_Object *obj EINA_UNUSED, void *
805} 823}
806 824
807static void 825static void
808_item_menu_priority_decrease_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 826_item_menu_priority_decrease_cb(void *data, Evas_Object *obj EINA_UNUSED,
827 void *event_info EINA_UNUSED)
809{ 828{
810 Proc_Info *proc = data; 829 Proc_Info *proc = data;
811 if (!proc) return; 830 if (!proc) return;
@@ -814,7 +833,8 @@ _item_menu_priority_decrease_cb(void *data, Evas_Object *obj EINA_UNUSED, void *
814} 833}
815 834
816static void 835static void
817_item_menu_priority_add(Evas_Object *menu, Elm_Object_Item *menu_it, Proc_Info *proc) 836_item_menu_priority_add(Evas_Object *menu, Elm_Object_Item *menu_it,
837 Proc_Info *proc)
818{ 838{
819 Elm_Object_Item *it; 839 Elm_Object_Item *it;
820 840
@@ -858,7 +878,8 @@ _item_menu_create(Ui *ui, Proc_Info *proc)
858} 878}
859 879
860static void 880static void
861_item_pid_secondary_clicked_cb(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info) 881_item_pid_secondary_clicked_cb(void *data EINA_UNUSED, Evas *e EINA_UNUSED,
882 Evas_Object *obj, void *event_info)
862{ 883{
863 Evas_Object *menu; 884 Evas_Object *menu;
864 Evas_Event_Mouse_Up *ev; 885 Evas_Event_Mouse_Up *ev;
@@ -1140,7 +1161,8 @@ _tab_state_changed(Ui *ui, Evas_Object *btn_active, Evas_Object *view)
1140} 1161}
1141 1162
1142static void 1163static void
1143_tab_memory_activity_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 1164_tab_memory_activity_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
1165 void *event_info EINA_UNUSED)
1144{ 1166{
1145 Ui *ui = data; 1167 Ui *ui = data;
1146 1168
@@ -1150,7 +1172,8 @@ _tab_memory_activity_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *
1150} 1172}
1151 1173
1152static void 1174static void
1153_tab_system_activity_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 1175_tab_system_activity_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
1176 void *event_info EINA_UNUSED)
1154{ 1177{
1155 Ui *ui = data; 1178 Ui *ui = data;
1156 1179
@@ -1160,7 +1183,8 @@ _tab_system_activity_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *
1160} 1183}
1161 1184
1162static void 1185static void
1163_tab_disk_activity_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 1186_tab_disk_activity_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
1187 void *event_info EINA_UNUSED)
1164{ 1188{
1165 Ui *ui = data; 1189 Ui *ui = data;
1166 1190
@@ -1170,7 +1194,8 @@ _tab_disk_activity_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *ev
1170} 1194}
1171 1195
1172static void 1196static void
1173_tab_misc_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 1197_tab_misc_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
1198 void *event_info EINA_UNUSED)
1174{ 1199{
1175 Ui *ui = data; 1200 Ui *ui = data;
1176 1201
@@ -1180,7 +1205,8 @@ _tab_misc_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info
1180} 1205}
1181 1206
1182static void 1207static void
1183_tab_cpu_activity_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 1208_tab_cpu_activity_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
1209 void *event_info EINA_UNUSED)
1184{ 1210{
1185 Ui *ui = data; 1211 Ui *ui = data;
1186 1212
@@ -1199,7 +1225,8 @@ _evisum_process_filter(Ui *ui, const char *text)
1199} 1225}
1200 1226
1201static void 1227static void
1202_evisum_search_keypress_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info) 1228_evisum_search_keypress_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj,
1229 void *event_info)
1203{ 1230{
1204 Ui * ui; 1231 Ui * ui;
1205 const char *markup; 1232 const char *markup;
@@ -1529,7 +1556,8 @@ evisum_ui_shutdown(Ui *ui)
1529 if (ui->cpu_list) 1556 if (ui->cpu_list)
1530 eina_list_free(ui->cpu_list); 1557 eina_list_free(ui->cpu_list);
1531 1558
1532 evisum_ui_item_cache_free(ui->cache); 1559 if (ui->cache)
1560 evisum_ui_item_cache_free(ui->cache);
1533 1561
1534 eina_lock_free(&_lock); 1562 eina_lock_free(&_lock);
1535} 1563}
diff --git a/src/bin/ui/ui_cache.c b/src/bin/ui/ui_cache.c
index d4f59a1..afefba6 100644
--- a/src/bin/ui/ui_cache.c
+++ b/src/bin/ui/ui_cache.c
@@ -1,7 +1,8 @@
1#include "ui_cache.h" 1#include "ui_cache.h"
2 2
3Evisum_Ui_Cache * 3Evisum_Ui_Cache *
4evisum_ui_item_cache_new(Evas_Object *parent, Evas_Object *(create_cb)(Evas_Object *), int size) 4evisum_ui_item_cache_new(Evas_Object *parent,
5 Evas_Object *(create_cb)(Evas_Object *), int size)
5{ 6{
6 Evisum_Ui_Cache *cache = malloc(sizeof(Evisum_Ui_Cache)); 7 Evisum_Ui_Cache *cache = malloc(sizeof(Evisum_Ui_Cache));
7 if (!cache) return NULL; 8 if (!cache) return NULL;
diff --git a/src/bin/ui/ui_process_view.c b/src/bin/ui/ui_process_view.c
index 9a852bc..56682d1 100644
--- a/src/bin/ui/ui_process_view.c
+++ b/src/bin/ui/ui_process_view.c
@@ -49,7 +49,8 @@ _exe_response(const char *command)
49} 49}
50 50
51static void 51static void
52_item_unrealized_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 52_item_unrealized_cb(void *data, Evas_Object *obj EINA_UNUSED,
53 void *event_info EINA_UNUSED)
53{ 54{
54 Ui_Process *ui; 55 Ui_Process *ui;
55 Evas_Object *o; 56 Evas_Object *o;
@@ -356,7 +357,8 @@ _proc_info_update(void *data)
356 ecore_timer_del(ui->timer_pid); 357 ecore_timer_del(ui->timer_pid);
357 ui->timer_pid = NULL; 358 ui->timer_pid = NULL;
358 359
359 _win_title_set(ui->win, _("%s (%d) - Not running"), ui->selected_cmd, ui->selected_pid); 360 _win_title_set(ui->win, _("%s (%d) - Not running"), ui->selected_cmd,
361 ui->selected_pid);
360 362
361 return ECORE_CALLBACK_CANCEL; 363 return ECORE_CALLBACK_CANCEL;
362 } 364 }
@@ -402,7 +404,8 @@ _proc_info_update(void *data)
402} 404}
403 405
404static void 406static void
405_btn_start_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 407_btn_start_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
408 void *event_info EINA_UNUSED)
406{ 409{
407 Ui_Process *ui = data; 410 Ui_Process *ui = data;
408 411
@@ -413,7 +416,8 @@ _btn_start_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info
413} 416}
414 417
415static void 418static void
416_btn_stop_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 419_btn_stop_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
420 void *event_info EINA_UNUSED)
417{ 421{
418 Ui_Process *ui = data; 422 Ui_Process *ui = data;
419 423
@@ -424,7 +428,8 @@ _btn_stop_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info
424} 428}
425 429
426static void 430static void
427_btn_kill_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 431_btn_kill_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
432 void *event_info EINA_UNUSED)
428{ 433{
429 Ui_Process *ui = data; 434 Ui_Process *ui = data;
430 435
@@ -637,7 +642,7 @@ _btn_icon_state_set(Evas_Object *button, Eina_Bool reverse)
637 642
638static void 643static void
639_btn_name_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, 644_btn_name_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
640 void *event_info EINA_UNUSED) 645 void *event_info EINA_UNUSED)
641{ 646{
642 Ui_Process *ui = data; 647 Ui_Process *ui = data;
643 648
@@ -663,7 +668,7 @@ _btn_thread_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
663 668
664static void 669static void
665_btn_state_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, 670_btn_state_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
666 void *event_info EINA_UNUSED) 671 void *event_info EINA_UNUSED)
667{ 672{
668 Ui_Process *ui = data; 673 Ui_Process *ui = data;
669 674
@@ -689,7 +694,7 @@ _btn_cpu_id_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
689 694
690static void 695static void
691_btn_cpu_usage_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, 696_btn_cpu_usage_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
692 void *event_info EINA_UNUSED) 697 void *event_info EINA_UNUSED)
693{ 698{
694 Ui_Process *ui = data; 699 Ui_Process *ui = data;
695 700
@@ -826,7 +831,8 @@ _hide_all(Ui_Process *ui, Evas_Object *btn)
826} 831}
827 832
828static void 833static void
829_btn_process_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 834_btn_process_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
835 void *event_info EINA_UNUSED)
830{ 836{
831 Ui_Process *ui; 837 Ui_Process *ui;
832 838
@@ -837,7 +843,8 @@ _btn_process_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_in
837} 843}
838 844
839static void 845static void
840_btn_threads_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 846_btn_threads_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
847 void *event_info EINA_UNUSED)
841{ 848{
842 Ui_Process *ui; 849 Ui_Process *ui;
843 850
@@ -849,7 +856,8 @@ _btn_threads_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_in
849} 856}
850 857
851static void 858static void
852_btn_info_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 859_btn_info_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
860 void *event_info EINA_UNUSED)
853{ 861{
854 Ui_Process *ui; 862 Ui_Process *ui;
855 char *line; 863 char *line;
@@ -972,7 +980,8 @@ _tabs_add(Evas_Object *parent, Ui_Process *ui)
972} 980}
973 981
974static void 982static void
975_win_del_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 983_win_del_cb(void *data, Evas_Object *obj EINA_UNUSED,
984 void *event_info EINA_UNUSED)
976{ 985{
977 Evas_Object *win; 986 Evas_Object *win;
978 Ui_Process *ui; 987 Ui_Process *ui;
diff --git a/src/bin/ui/ui_process_view.h b/src/bin/ui/ui_process_view.h
index 8aed51c..e382a4a 100644
--- a/src/bin/ui/ui_process_view.h
+++ b/src/bin/ui/ui_process_view.h
@@ -8,15 +8,16 @@ typedef struct _Ui_Process {
8 Evas_Object *win; 8 Evas_Object *win;
9 Evas_Object *content; 9 Evas_Object *content;
10 10
11 Evas_Object *btn_main;
12 Evas_Object *btn_info;
13 Evas_Object *btn_thread;
14
11 Evas_Object *main_view; 15 Evas_Object *main_view;
12 Evas_Object *info_view; 16 Evas_Object *info_view;
13 Evas_Object *thread_view; 17 Evas_Object *thread_view;
14 18
15 Evas_Object *btn_main; 19 Evas_Object *entry_info;
16 Evas_Object *btn_info;
17 Evas_Object *btn_thread;
18 20
19 Evas_Object *entry_info;
20 Evas_Object *genlist_threads; 21 Evas_Object *genlist_threads;
21 Evisum_Ui_Cache *cache; 22 Evisum_Ui_Cache *cache;
22 23