Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
David MacDonald
purr-data
Commits
34d72e43
Commit
34d72e43
authored
Sep 15, 2016
by
Jonathan Wilkes
Browse files
hook pd->gui preset initialization into the "skin" object
parent
dec3b6c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/pdgui.js
View file @
34d72e43
...
@@ -49,7 +49,7 @@ exports.get_pd_opendir = function() {
...
@@ -49,7 +49,7 @@ exports.get_pd_opendir = function() {
}
}
function
gui_set_gui_preset
(
name
)
{
function
gui_set_gui_preset
(
name
)
{
post
(
"
the gui preset is
"
+
name
);
skin
.
set
(
name
);
}
}
exports
.
set_last_clipboard_data
=
function
(
data
)
{
exports
.
set_last_clipboard_data
=
function
(
data
)
{
...
@@ -3854,7 +3854,7 @@ function gui_gui_properties(dummy, name) {
...
@@ -3854,7 +3854,7 @@ function gui_gui_properties(dummy, name) {
}
}
// Let's try a closure for gui skins
// Let's try a closure for gui skins
exports
.
skin
=
(
function
()
{
var
skin
=
exports
.
skin
=
(
function
()
{
var
dir
=
"
css/
"
;
var
dir
=
"
css/
"
;
var
preset
=
"
default
"
;
var
preset
=
"
default
"
;
var
id
;
var
id
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment