aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2015-07-25 16:48:23 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2015-07-25 16:48:23 +0200
commitc2f70070e6c7d8bfbe373cbf2e7d6d69641f4f20 (patch)
tree1194ab4582ffe2a6e8e946fc9d35c23d3a7f8462 /lib
parentcbe2d9b7d44c3a9a1512d187296eb28e47f40873 (diff)
downloadsynthpod-c2f70070e6c7d8bfbe373cbf2e7d6d69641f4f20.tar.xz
implement JACK session management.
Diffstat (limited to 'lib')
-rw-r--r--lib/synthpod_ui.c19
-rw-r--r--lib/synthpod_ui.h3
2 files changed, 17 insertions, 5 deletions
diff --git a/lib/synthpod_ui.c b/lib/synthpod_ui.c
index 01cc3360..a2bab2cc 100644
--- a/lib/synthpod_ui.c
+++ b/lib/synthpod_ui.c
@@ -4066,8 +4066,8 @@ _theme_key_down(void *data, Evas *e, Evas_Object *obj, void *event_info)
Evas_Event_Key_Down *ev = event_info;
- printf("_theme_key_down: %s\n", ev->key);
- //FIXME
+ //printf("_theme_key_down: %s\n", ev->key);
+ //FIXME new/open/save/exit callbacks
}
static void
@@ -4155,7 +4155,7 @@ _menu_new(void *data, Evas_Object *obj, void *event_info)
{
sp_ui_t *ui = data;
- _modlist_clear(ui, 0);
+ sp_ui_bundle_new(ui);
}
static void
@@ -4167,7 +4167,7 @@ _menu_open(void *data, Evas_Object *obj, void *event_info)
if(bundle_path)
{
int update_path = ui->driver->features & SP_UI_FEATURE_OPEN ? 1 : 0;
- _modlist_clear(ui, 1);
+ _modlist_clear(ui, 1); // clear system ports
sp_ui_bundle_load(ui, bundle_path, update_path);
}
}
@@ -4544,7 +4544,7 @@ sp_ui_new(Evas_Object *win, const LilvWorld *world, sp_ui_driver_t *driver,
icon = elm_icon_add(but);
if(icon)
{
- elm_icon_standard_set(icon, "document-close");
+ elm_icon_standard_set(icon, "application-exit");
evas_object_show(icon);
elm_object_content_set(but, icon);
}
@@ -5204,6 +5204,15 @@ sp_ui_bundle_load(sp_ui_t *ui, const char *bundle_path, int update_path)
}
void
+sp_ui_bundle_new(sp_ui_t *ui)
+{
+ if(!ui)
+ return;
+
+ _modlist_clear(ui, 0); // do not clear system ports
+}
+
+void
sp_ui_bundle_save(sp_ui_t *ui, const char *bundle_path, int update_path)
{
if(!ui || !bundle_path)
diff --git a/lib/synthpod_ui.h b/lib/synthpod_ui.h
index 56e5ff45..932274e5 100644
--- a/lib/synthpod_ui.h
+++ b/lib/synthpod_ui.h
@@ -100,6 +100,9 @@ void
sp_ui_from_app(sp_ui_t *ui, const LV2_Atom *atom);
void
+sp_ui_bundle_new(sp_ui_t *ui);
+
+void
sp_ui_bundle_load(sp_ui_t *ui, const char *bundle_path, int update_path);
void