parent
ddb1cf0c7a
commit
714470e020
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
|
@ -10,5 +10,5 @@ install_data('go-up.png', 'go-down.png',
|
||||||
'sky_04.jpg', 'effects.png', 'info.png',
|
'sky_04.jpg', 'effects.png', 'info.png',
|
||||||
'clo.png', 'bolt.png', 'menu.png',
|
'clo.png', 'bolt.png', 'menu.png',
|
||||||
'lovethisdogharvey.png', 'application.png',
|
'lovethisdogharvey.png', 'application.png',
|
||||||
'e.png', 'border.png',
|
'e.png', 'border.png', 'freebsd.png',
|
||||||
install_dir: join_paths(dir_data, 'evisum/images'))
|
install_dir: join_paths(dir_data, 'evisum/images'))
|
||||||
|
|
|
@ -365,6 +365,8 @@ _process_list_linux_get(void)
|
||||||
p->nice = st.nice;
|
p->nice = st.nice;
|
||||||
p->priority = st.pri;
|
p->priority = st.pri;
|
||||||
p->numthreads = st.numthreads;
|
p->numthreads = st.numthreads;
|
||||||
|
if (st->flags & PF_KTHREAD)
|
||||||
|
p->is_kernel = 1;
|
||||||
_mem_size(p);
|
_mem_size(p);
|
||||||
_cmd_args(p, st.name, sizeof(st.name));
|
_cmd_args(p, st.name, sizeof(st.name));
|
||||||
|
|
||||||
|
@ -925,6 +927,7 @@ _proc_thread_info(struct kinfo_proc *kp, Eina_Bool is_thread)
|
||||||
|
|
||||||
p->tid = kp->ki_tid;
|
p->tid = kp->ki_tid;
|
||||||
p->thread_name = strdup(kp->ki_tdname);
|
p->thread_name = strdup(kp->ki_tdname);
|
||||||
|
if (kp->ki_flag & P_KPROC) p->is_kernel = 1;
|
||||||
|
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,6 +31,7 @@ typedef struct _Proc_Info
|
||||||
char *arguments;
|
char *arguments;
|
||||||
const char *state;
|
const char *state;
|
||||||
|
|
||||||
|
short is_kernel;
|
||||||
int tid;
|
int tid;
|
||||||
char *thread_name;
|
char *thread_name;
|
||||||
|
|
||||||
|
|
|
@ -450,6 +450,11 @@ _content_get(void *data, Evas_Object *obj, const char *source)
|
||||||
struct passwd *pwd_entry;
|
struct passwd *pwd_entry;
|
||||||
Evas_Object *l, *r, *o, *hbx, *pb;
|
Evas_Object *l, *r, *o, *hbx, *pb;
|
||||||
Evas_Coord w, ow;
|
Evas_Coord w, ow;
|
||||||
|
#if defined(__linux__)
|
||||||
|
const char *kernel_icon = "linux";
|
||||||
|
#else
|
||||||
|
const char *kernel_icon = "freebsd";
|
||||||
|
#endif
|
||||||
Ui_Data *pd = _private_data;
|
Ui_Data *pd = _private_data;
|
||||||
|
|
||||||
proc = (void *) data;
|
proc = (void *) data;
|
||||||
|
@ -516,7 +521,10 @@ _content_get(void *data, Evas_Object *obj, const char *source)
|
||||||
evas_object_show(l);
|
evas_object_show(l);
|
||||||
|
|
||||||
o = evas_object_data_get(it->obj, "icon");
|
o = evas_object_data_get(it->obj, "icon");
|
||||||
elm_icon_standard_set(o, evisum_icon_path_get(evisum_icon_cache_find(proc->command)));
|
if (proc->is_kernel)
|
||||||
|
elm_icon_standard_set(o, evisum_icon_path_get(kernel_icon));
|
||||||
|
else
|
||||||
|
elm_icon_standard_set(o, evisum_icon_path_get(evisum_icon_cache_find(proc->command)));
|
||||||
r = evas_object_data_get(o, "rect");
|
r = evas_object_data_get(o, "rect");
|
||||||
evas_object_size_hint_min_set(r, w, 1);
|
evas_object_size_hint_min_set(r, w, 1);
|
||||||
evas_object_show(o);
|
evas_object_show(o);
|
||||||
|
|
Loading…
Reference in New Issue