diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2019-12-02 14:32:42 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2019-12-02 14:32:42 +0000 |
| commit | 81fe2250a70c892eeb195725117d566a042e5c93 (patch) | |
| tree | e2c70bd1b0f9e9d9063f6ff7aa11f6fa6b8ced80 /src/ui/toolbar/livecode-toolbar.cpp | |
| parent | add basic livecode toolbar (diff) | |
| download | inkscape-81fe2250a70c892eeb195725117d566a042e5c93.tar.gz inkscape-81fe2250a70c892eeb195725117d566a042e5c93.zip | |
add draft janet interface for livecoding
Diffstat (limited to 'src/ui/toolbar/livecode-toolbar.cpp')
| -rw-r--r-- | src/ui/toolbar/livecode-toolbar.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/toolbar/livecode-toolbar.cpp b/src/ui/toolbar/livecode-toolbar.cpp index 81533fec7..ee3a8b3c0 100644 --- a/src/ui/toolbar/livecode-toolbar.cpp +++ b/src/ui/toolbar/livecode-toolbar.cpp @@ -46,7 +46,7 @@ static LivecodeTool *get_livecode_tool() static void update_script_list(GtkListStore *model_files) { gtk_list_store_clear(model_files); auto prefs = Inkscape::Preferences::get(); - Glib::ustring library_path= prefs->getString("/tools/livecode/library_dir"); + Glib::ustring const library_path = prefs->getString("/tools/livecode/library_dir"); Glib::RefPtr<Gio::File> library_dir = Gio::File::create_for_path(library_path); auto enumerator = library_dir->enumerate_children(); @@ -72,6 +72,7 @@ namespace UI { namespace Toolbar { LivecodeToolbar::LivecodeToolbar(SPDesktop *desktop) : Toolbar(desktop) + , _freeze(false) { auto prefs = Inkscape::Preferences::get(); @@ -132,7 +133,7 @@ void LivecodeToolbar::active_script_value_changed() LivecodeTool *tool = get_livecode_tool(); if (tool) { - // tool->loadScript(path); + tool->load_script(path); } _freeze = false; |
