After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 420202 - Changing "unsaved document"-string to something useful
Changing "unsaved document"-string to something useful
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
git master
Other All
: Normal enhancement
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2007-03-19 17:51 UTC by Frederic Back
Modified: 2011-03-14 16:08 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
patch against svn trunk (r 5577) using svn diff (5.47 KB, patch)
2007-03-19 17:55 UTC, Frederic Back
none Details | Review

Description Frederic Back 2007-03-19 17:51:26 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.
Comment 1 Frederic Back 2007-03-19 17:55:17 UTC
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.
Comment 2 Ignacio Casal Quinteiro (nacho) 2011-03-14 16:08:51 UTC
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.