Re: [gedit-list] How determine file path of currently open document



Peter,

gedit's API is documented at

https://developer.gnome.org/gedit/stable/

You can also read the API documentation offline using GNOME's Devhelp application.  To see it, you might need to install your distribution's package that includes the gedit documentation (it's 'gedit-dev' on Debian/Ubuntu).

The source code for gedit is in GNOME's git repository - see

https://git.gnome.org/browse/gedit

Alternatively you could download a tarball for any particular version from

https://download.gnome.org/sources/gedit/

The API documention is a bit sparse - it might be helpful to look at the source code for some of the plugins that come with gedit, some of which are written in C.  You can find them in the 'plugins' directory in the gedit source tree.  I hope this helps -

adam

On Tue, Jan 20, 2015 at 8:18 PM, Peter Bittner <peter bittner gmx net> wrote:
Hi there, I'm working on a Gedit plugin that needs to determine the file path of the currently open document (if the content of the document is already saved as a file). In addition (for unsaved documents) I need to figure out Gedit's "working directory" (the one displayed with the `Save As...` dialog). Is there any API documentation that helps me with that? It seems surprisingly hard to find anything about this using a Web search. -- Alternatively, where can I find Gedit's source code? Thanks in advance for any hints, Peter _______________________________________________ gedit-list mailing list gedit-list gnome org https://mail.gnome.org/mailman/listinfo/gedit-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]