Commit e22eedc4 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

*fixed properly parsing of a current path that has a space in it

*fixed how window shortcuts (ctrl+w and ctrl+q) behave in the view list menu for arrays
parent 5892bac0
......@@ -1321,7 +1321,7 @@ proc open_file {filename} {
if {[regexp -nocase -- "\.(pd|pat|mxt)$" $basename]} {
pd "pd open [pdtk_enquote $basename] [pdtk_enquote $directory] ;"
set pd_opendir $directory
::pd_guiprefs::update_recentfiles $filename 1
::pd_guiprefs::update_recentfiles "$filename" 1
}
}
......@@ -3818,8 +3818,8 @@ proc pdtk_array_listview_new {id arrayName page} {
toplevel $windowName -class [winfo class .]
wm geometry $windowName 220x400
wm minsize $windowName 220 400
#pdtk_standardkeybindings $windowName
bind $windowName <Control-w> {destroy %W}
# pdtk_standardkeybindings $windowName
bind $windowName <Control-w> [list destroy $windowName]
bind $windowName <Control-q> {menu_quit}
match_linux_wm [list $windowName configure]
wm protocol $windowName WM_DELETE_WINDOW \
......@@ -4964,7 +4964,7 @@ proc pdtk_canvas_saveas {name initfile initdir} {
# pd [concat $name savetofile $basename $directory \;]
set untitled_directory $directory
# add to recentfiles
::pd_guiprefs::update_recentfiles $filename 1
::pd_guiprefs::update_recentfiles "$filename" 1
}
# zooming (a subset of dofont)
......
......@@ -172,7 +172,7 @@ static void openit(const char *dirname, const char *filename)
{
close (fd);
glob_evalfile(0, gensym(nameptr), gensym(dirbuf));
sys_vgui("pdtk_set_current_dir %s\n", filename);
sys_vgui("pdtk_set_current_dir {%s}\n", filename);
char actualpath[PATH_MAX];
char *path_ptr = NULL;
path_ptr = realpath(filename, actualpath);
......@@ -181,7 +181,7 @@ static void openit(const char *dirname, const char *filename)
// strstr(filename, dirname), actualpath, path_ptr);
if (path_ptr != NULL)
{
sys_vgui("::pd_guiprefs::update_recentfiles %s 1\n", actualpath);
sys_vgui("::pd_guiprefs::update_recentfiles \"%s\" 1\n", actualpath);
}
}
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment