diff options
author | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2016-06-03 17:39:01 +0200 |
---|---|---|
committer | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2016-06-03 17:39:01 +0200 |
commit | cf38cde151f78c97d6a24c791dd32bfeed86f089 (patch) | |
tree | ffc8c36a61e7a3ef39f4cb23a7f514cb6a29da28 | |
parent | 88a4931e6fb96ea06880c1942d9e4b12b949e545 (diff) | |
download | synthpod-cf38cde151f78c97d6a24c791dd32bfeed86f089.tar.xz |
simplify source/sink edje signal names.
-rw-r--r-- | data/modlist.edc | 15 | ||||
-rw-r--r-- | ui/synthpod_ui_port.c | 6 | ||||
-rw-r--r-- | ui/synthpod_ui_prop.c | 6 |
3 files changed, 6 insertions, 21 deletions
diff --git a/data/modlist.edc b/data/modlist.edc index 1d329ce3..a1316ba9 100644 --- a/data/modlist.edc +++ b/data/modlist.edc @@ -471,25 +471,14 @@ group { } program { - signal: "source,show"; + signal: "source,on"; action: STATE_SET "default" 1.0; target: "direction"; } program { - signal: "source,hide"; + signal: "source,off"; action: STATE_SET "default" 0.0; target: "direction"; } - - program { - signal: "sink,show"; - action: STATE_SET "default" 0.0; - target: "direction"; - } - program { - signal: "sink,hide"; - action: STATE_SET "default" 1.0; - target: "direction"; - } } } diff --git a/ui/synthpod_ui_port.c b/ui/synthpod_ui_port.c index 4b82fad3..e65f6b38 100644 --- a/ui/synthpod_ui_port.c +++ b/ui/synthpod_ui_port.c @@ -280,13 +280,11 @@ _modlist_std_content_get(void *data, Evas_Object *obj, const char *part) elm_layout_signal_emit(lay, col, MODLIST_UI); if(port->direction == PORT_DIRECTION_OUTPUT) { - elm_layout_signal_emit(lay, "source,show", ""); - elm_layout_signal_emit(lay, "sink,hide", ""); + elm_layout_signal_emit(lay, "source,on", ""); } else { - elm_layout_signal_emit(lay, "source,hide", ""); - elm_layout_signal_emit(lay, "sink,show", ""); + elm_layout_signal_emit(lay, "source,off", ""); } LilvNode *name_node = lilv_port_get_name(mod->plug, port->tar); diff --git a/ui/synthpod_ui_prop.c b/ui/synthpod_ui_prop.c index 120fd322..509b3a97 100644 --- a/ui/synthpod_ui_prop.c +++ b/ui/synthpod_ui_prop.c @@ -654,13 +654,11 @@ _property_content_get(void *data, Evas_Object *obj, const char *part) elm_layout_signal_emit(lay, col, MODLIST_UI); if(!prop->editable) { - elm_layout_signal_emit(lay, "source,show", ""); - elm_layout_signal_emit(lay, "sink,hide", ""); + elm_layout_signal_emit(lay, "source,on", ""); } else { - elm_layout_signal_emit(lay, "source,hide", ""); - elm_layout_signal_emit(lay, "sink,show", ""); + elm_layout_signal_emit(lay, "source,off", ""); } if(prop->label) |