Commit b3b638d6 authored by sumpfralle's avatar sumpfralle

add any selected file to the list of "recently used files" (managed by GTK)


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@264 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent b0d1d886
...@@ -1487,6 +1487,10 @@ class ProjectGui: ...@@ -1487,6 +1487,10 @@ class ProjectGui:
else: else:
done = True done = True
dialog.destroy() dialog.destroy()
# add the file to the list of recently used ones
if filename:
recent = gtk.RecentManager()
recent.add_item("file://%s" % str(filename))
return filename return filename
def setOutputFilename(self, filename): def setOutputFilename(self, filename):
......
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