Small corrections to some API docs.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4063 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2009-08-09 20:31:03 +00:00
parent c0c44bea49
commit b25980ba8d
5 changed files with 33 additions and 30 deletions

View File

@ -5,6 +5,9 @@
* src/keybindings.c:
Switching notebook tabs now works for the currently used notebook
widget instead of always using the documents notebook.
* src/document.c, src/document.h, src/documentprivate.h,
doc/plugins.dox:
Small corrections to some API docs.
2009-08-02 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>

View File

@ -37,7 +37,7 @@
* @section Intro
* This is the Geany API documentation. It is far from being complete and should be
* considered as a work in progress.
* We will try to %document as many functions and structs as possible.
* We will try to document as many functions and structs as possible.
*
* To get started, see the @link howto Plugin Howto @endlink.
*
@ -89,7 +89,7 @@ PluginCallback plugin_callbacks[] =
* void user_function(GObject *obj, GeanyDocument *doc, gpointer user_data);
* @endsignalproto
* @signaldesc
* Sent when a new %document is created.
* Sent when a new document is created.
*
* You need to include "document.h" for the declaration of GeanyDocument.
*
@ -103,7 +103,7 @@ PluginCallback plugin_callbacks[] =
* void user_function(GObject *obj, GeanyDocument *doc, gpointer user_data);
* @endsignalproto
* @signaldesc
* Sent when a new %document is opened.
* Sent when a new document is opened.
*
* You need to include "document.h" for the declaration of GeanyDocument.
*
@ -117,7 +117,7 @@ PluginCallback plugin_callbacks[] =
* void user_function(GObject *obj, GeanyDocument *doc, gpointer user_data);
* @endsignalproto
* @signaldesc
* Sent when a new %document is saved.
* Sent when a new document is saved.
*
* You need to include "document.h" for the declaration of GeanyDocument.
*
@ -333,7 +333,7 @@ PluginCallback plugin_callbacks[] =
* @section intro Introduction
*
* Since Geany 0.12 there is a plugin interface to extend Geany's functionality and
* add new features. This %document gives a brief overview about how to add new
* add new features. This document gives a brief overview about how to add new
* plugins by writing a simple "Hello World" plugin in C.
*
*

View File

@ -254,9 +254,9 @@ GeanyDocument *document_get_from_page(guint page_num)
/**
* Find and retrieve the current %document.
* Find and retrieve the current document.
*
* @return A pointer to the current %document or @c NULL if there are no opened documents.
* @return A pointer to the current document or @c NULL if there are no opened documents.
**/
GeanyDocument *document_get_current(void)
{
@ -750,12 +750,12 @@ GeanyDocument *document_new_file(const gchar *utf8_filename, GeanyFiletype *ft,
/**
* Open a %document specified by @a locale_filename.
* Open a document specified by @a locale_filename.
* After all, the "document-open" signal is emitted for plugins.
*
* @param locale_filename The filename of the %document to load, in locale encoding.
* @param readonly Whether to open the %document in read-only mode.
* @param ft The %filetype for the %document or @c NULL to auto-detect the %filetype.
* @param locale_filename The filename of the document to load, in locale encoding.
* @param readonly Whether to open the document in read-only mode.
* @param ft The filetype for the document or @c NULL to auto-detect the filetype.
* @param forced_enc The file encoding to use or @c NULL to auto-detect the file encoding.
*
* @return The document opened or @c NULL.
@ -1365,8 +1365,8 @@ void document_open_file_list(const gchar *data, gssize length)
* Internally, document_open_file() is called for every list item.
*
* @param filenames A list of filenames to load, in locale encoding.
* @param readonly Whether to open the %document in read-only mode.
* @param ft The %filetype for the %document or @c NULL to auto-detect the %filetype.
* @param readonly Whether to open the document in read-only mode.
* @param ft The filetype for the document or @c NULL to auto-detect the filetype.
* @param forced_enc The file encoding to use or @c NULL to auto-detect the file encoding.
**/
void document_open_files(const GSList *filenames, gboolean readonly, GeanyFiletype *ft,
@ -1387,7 +1387,7 @@ void document_open_files(const GSList *filenames, gboolean readonly, GeanyFilety
* @param doc The document to reload.
* @param forced_enc The file encoding to use or @c NULL to auto-detect the file encoding.
*
* @return @c TRUE if the %document was actually reloaded or @c FALSE otherwise.
* @return @c TRUE if the document was actually reloaded or @c FALSE otherwise.
**/
gboolean document_reload_file(GeanyDocument *doc, const gchar *forced_enc)
{
@ -1689,7 +1689,7 @@ static gchar *write_data_to_disk(GeanyDocument *doc, const gchar *locale_filenam
*
* If the file is not modified, this functions does nothing unless force is set to @c TRUE.
*
* @param doc The %document to save.
* @param doc The document to save.
* @param force Whether to save the file even if it is not modified (e.g. for Save As).
*
* @return @c TRUE if the file was saved or @c FALSE if the file could not or should not be saved.
@ -2466,12 +2466,12 @@ void document_reload_config(GeanyDocument *doc)
/**
* Sets the encoding of a %document.
* Sets the encoding of a document.
* This function only set the encoding of the %document, it does not any conversions. The new
* encoding is used when e.g. saving the file.
*
* @param doc The %document to use.
* @param new_encoding The encoding to be set for the %document.
* @param doc The document to use.
* @param new_encoding The encoding to be set for the document.
**/
void document_set_encoding(GeanyDocument *doc, const gchar *new_encoding)
{

View File

@ -71,7 +71,7 @@ struct GeanyDocument
/** General flag to represent this document is active and all properties are set correctly. */
gboolean is_valid;
gint index; /**< Index in the documents array. */
/** Whether this %document support source code symbols(tags) to show in the sidebar. */
/** Whether this document supports source code symbols(tags) to show in the sidebar. */
gboolean has_tags;
/** The UTF-8 encoded file name.
* Be careful; glibc and GLib file functions expect the locale representation of the
@ -79,20 +79,20 @@ struct GeanyDocument
* For conversion into locale encoding, you can use @ref utils_get_locale_from_utf8().
* @see real_path. */
gchar *file_name;
/** The encoding of the %document, must be a valid string representation of an encoding, can
/** The encoding of the document, must be a valid string representation of an encoding, can
* be retrieved with @ref encodings_get_charset_from_index. */
gchar *encoding;
/** Internally used flag to indicate whether the file of this %document has a byte-order-mark. */
/** Internally used flag to indicate whether the file of this document has a byte-order-mark. */
gboolean has_bom;
struct GeanyEditor *editor; /**< The editor associated with the document. */
/** The filetype for this %document, it's only a reference to one of the elements of the global
/** The filetype for this document, it's only a reference to one of the elements of the global
* filetypes array. */
GeanyFiletype *file_type;
/** TMWorkObject object for this %document, or @c NULL. */
/** TMWorkObject object for this document, or @c NULL. */
TMWorkObject *tm_file;
/** Whether this %document is read-only. */
/** Whether this document is read-only. */
gboolean readonly;
/** Whether this %document has been changed since it was last saved. */
/** Whether this document has been changed since it was last saved. */
gboolean changed;
/** The link-dereferenced, locale-encoded file name.
* If non-NULL, this indicates the file once existed on disk (not just as an
@ -133,8 +133,8 @@ extern GPtrArray *documents_array;
/**
* DOC_FILENAME returns the filename of the document passed or
* GEANY_STRING_UNTITLED (e.g. _("untitled")) if the %document's filename was not yet set.
* This macro never returns NULL.
* GEANY_STRING_UNTITLED (e.g. _("untitled")) if the document's filename was not yet set.
* This macro never returns @c NULL.
**/
#define DOC_FILENAME(doc) \
(G_LIKELY(doc->file_name != NULL) ? (doc->file_name) : GEANY_STRING_UNTITLED)

View File

@ -59,11 +59,11 @@ typedef struct GeanyDocumentPrivate
{
/* GtkLabel shown in the notebook header. */
GtkWidget *tab_label;
/* GtkTreeView object for this %document within the Symbols treeview of the sidebar. */
/* GtkTreeView object for this document within the Symbols treeview of the sidebar. */
GtkWidget *tag_tree;
/* GtkTreeStore object for this %document within the Symbols treeview of the sidebar. */
/* GtkTreeStore object for this document within the Symbols treeview of the sidebar. */
GtkTreeStore *tag_store;
/* Iter for this %document within the Open Files treeview of the sidebar. */
/* Iter for this document within the Open Files treeview of the sidebar. */
GtkTreeIter iter;
/* Used by the Undo/Redo management code. */
GTrashStack *undo_actions;