GNOME Bugzilla – Bug 420202
Changing "unsaved document"-string to something useful
Last modified: 2011-03-14 16:08:51 UTC
When creating a new document from a plugin, there is no public method to change it's name from "Unsaved Document" to something else. I came across this use-case when writing a plugin to manage file templates. I want gedit to create new, unsaved documents with a specific name.
Created attachment 84900 [details] [review] patch against svn trunk (r 5577) using svn diff I wrote a patch to implement this feature: * GeditDocument::set_untitled_name() to set the untitled name. * GeditTab::refresh_label() to refresh the label in the notebook.
Sorry for the really late response, this was fixed in the meantime. You can use gedit_document_set_location and gedit_document_set_short_name_for_display for it. Closing this as fixed.