proclist: done.

This commit is contained in:
Alastair Poole 2021-03-28 11:35:36 +01:00
parent 9ac6c6105c
commit ff96ecee07
2 changed files with 22 additions and 2 deletions

View File

@ -32,6 +32,11 @@ collections {
name: "joke" COMP;
source: "badjoke.wav";
}
sample
{
name: "cockerel" COMP;
source: "cockerel.wav";
}
}
group
{
@ -165,6 +170,12 @@ collections {
source: "evisum/indicator";
action: PLAY_SAMPLE "joke" 1.0 INPUT;
}
program
{
signal: "process,kill";
source: "evisum/indicator";
action: PLAY_SAMPLE "cockerel" 1.0 INPUT;
}
}
}
}

View File

@ -1237,6 +1237,8 @@ _item_menu_kill_cb(void *data, Evas_Object *obj EINA_UNUSED,
{
Data *pd = data;
if (evisum_ui_effects_enabled_get(pd->ui))
elm_object_signal_emit(pd->indicator, "process,kill", "evisum/indicator");
kill(pd->selected_pid, SIGKILL);
}
@ -1439,7 +1441,14 @@ _glist_scrolled_cb(void *data, Evas_Object *obj EINA_UNUSED,
{
Data *pd = data;
// Update regularly on launch to allow for alignment.
if (pd->poll_count > 3)
pd->skip_update = 1;
else
{
pd->skip_update = 0;
pd->skip_wait = 1;
}
}
static void