diff --git a/data/sounds/badjoke.wav b/data/sounds/badjoke.wav new file mode 100644 index 0000000..72a2189 Binary files /dev/null and b/data/sounds/badjoke.wav differ diff --git a/data/sounds/cockerel.wav b/data/sounds/cockerel.wav new file mode 100644 index 0000000..f1c1854 Binary files /dev/null and b/data/sounds/cockerel.wav differ diff --git a/data/themes/evisum.edc b/data/themes/evisum.edc index 556a39c..7a907f1 100644 --- a/data/themes/evisum.edc +++ b/data/themes/evisum.edc @@ -25,6 +25,14 @@ group { \ } collections { + sounds + { + sample + { + name: "joke" COMP; + source: "badjoke.wav"; + } + } group { name: "cpu"; @@ -151,6 +159,12 @@ collections { transition: SINUSOIDAL 0.8; target: "evisum/indicator-clip"; } + program + { + signal: "fields,change"; + source: "evisum/indicator"; + action: PLAY_SAMPLE "joke" 1.0 INPUT; + } } } } diff --git a/data/themes/meson.build b/data/themes/meson.build index 23f22a6..b2467ae 100644 --- a/data/themes/meson.build +++ b/data/themes/meson.build @@ -3,6 +3,7 @@ edje_cmd = find_program('edje_cc') cmd = [ edje_cmd, '-id', join_paths(meson.source_root(), 'data', 'images'), '-id', join_paths(meson.source_root(), 'data', 'icons'), + '-sd', join_paths(meson.source_root(), 'data', 'sounds'), '@INPUT@', '@OUTPUT@' ] diff --git a/src/bin/ui/ui_process_list.c b/src/bin/ui/ui_process_list.c index adbc64c..87bd399 100644 --- a/src/bin/ui/ui_process_list.c +++ b/src/bin/ui/ui_process_list.c @@ -1165,6 +1165,8 @@ _btn_clicked_state_save(Data *pd, Evas_Object *btn) evas_object_del(pd->fields_menu); pd->fields_menu = NULL; // Postpone field changes until the user dismisses the popup. + if (evisum_ui_effects_enabled_get(pd->ui)) + elm_object_signal_emit(pd->indicator, "fields,change", "evisum/indicator"); if (pd->fields_changed) _content_reset(pd); return;