Branch: refs/heads/master
Author: Matthew Brush <mbrush(a)codebrainz.ca>
Committer: Matthew Brush <mbrush(a)codebrainz.ca>
Date: Mon, 14 Mar 2016 21:25:17 UTC
Commit: 76ede69ef49c6f4ac3e11068a3cd5ecdb4425d1b
https://github.com/geany/geany/commit/76ede69ef49c6f4ac3e11068a3cd5ecdb4425…
Log Message:
-----------
Remove `documents_array` global from plugin API
The global was never accessible to plugins on Windows and hasn't been
accessible to plugins on Linux and others since the linkage-cleanup
changes.
Move documentation from the global variable to the GeanyData member
of the same name.
Closes #964
Modified Paths:
--------------
src/document.c
src/document.h
src/plugindata.h
Modified: src/document.c
18 lines changed, 0 insertions(+), 18 deletions(-)
===================================================================
@@ -86,24 +86,6 @@
GeanyFilePrefs file_prefs;
-
-
-/** Dynamic array of GeanyDocument pointers.
- * Once a pointer is added to this, it is never freed. This means the same document pointer
- * can represent a different document later on, or it may have been closed and become invalid.
- * For this reason, you should use document_find_by_id() instead of storing
- * document pointers over time if there is a chance the user can close the
- * document.
- *
- * @warning You must check @c GeanyDocument::is_valid when iterating over this array.
- * This is done automatically if you use the foreach_document() macro.
- *
- * @note
- * Never assume that the order of document pointers is the same as the order of notebook tabs.
- * One reason is that notebook tabs can be reordered.
- * Use @c document_get_from_page() to lookup a document from a notebook tab number.
- *
- * @see documents. */
GPtrArray *documents_array = NULL;
Modified: src/document.h
3 lines changed, 1 insertions(+), 2 deletions(-)
===================================================================
@@ -118,8 +118,6 @@ typedef struct GeanyDocument
}
GeanyDocument;
-extern GPtrArray *documents_array;
-
/** Wraps @ref documents_array so it can be used with C array syntax.
* @warning Always check the returned document is valid (@c doc->is_valid).
*
@@ -231,6 +229,7 @@ GeanyDocument *document_find_by_id(guint id);
#endif
extern GeanyFilePrefs file_prefs;
+extern GPtrArray *documents_array;
/* These functions will replace the older functions. For now they have a documents_ prefix. */
Modified: src/plugindata.h
18 lines changed, 17 insertions(+), 1 deletions(-)
===================================================================
@@ -171,7 +171,23 @@ typedef struct GeanyData
{
struct GeanyApp *app; /**< Geany application data fields */
struct GeanyMainWidgets *main_widgets; /**< Important widgets in the main window */
- GPtrArray *documents_array; /**< See document.h#documents_array. @elementtype{GeanyDocument} */
+ /** Dynamic array of GeanyDocument pointers.
+ * Once a pointer is added to this, it is never freed. This means the same document pointer
+ * can represent a different document later on, or it may have been closed and become invalid.
+ * For this reason, you should use document_find_by_id() instead of storing
+ * document pointers over time if there is a chance the user can close the
+ * document.
+ *
+ * @warning You must check @c GeanyDocument::is_valid when iterating over this array.
+ * This is done automatically if you use the foreach_document() macro.
+ *
+ * @note
+ * Never assume that the order of document pointers is the same as the order of notebook tabs.
+ * One reason is that notebook tabs can be reordered.
+ * Use @c document_get_from_page() to lookup a document from a notebook tab number.
+ *
+ * @see documents. */
+ GPtrArray *documents_array;
GPtrArray *filetypes_array; /**< Dynamic array of GeanyFiletype pointers. @elementtype{GeanyFiletype} */
struct GeanyPrefs *prefs; /**< General settings */
struct GeanyInterfacePrefs *interface_prefs; /**< Interface settings */
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Matthew Brush <mbrush(a)codebrainz.ca>
Committer: Matthew Brush <mbrush(a)codebrainz.ca>
Date: Mon, 14 Mar 2016 21:25:35 UTC
Commit: d4aab06f9ba8bc0534303ce4b59b837a687be848
https://github.com/geany/geany/commit/d4aab06f9ba8bc0534303ce4b59b837a687be…
Log Message:
-----------
Move some documentation to show up in API docs.
The Doxygen comments were on the non-public global filetypes_array and
filetypes_by_title variables instead of the GeanyData members which are
exposed to the plugin API and reference manual.
Modified Paths:
--------------
src/filetypes.c
src/plugindata.h
Modified: src/filetypes.c
14 lines changed, 0 insertions(+), 14 deletions(-)
===================================================================
@@ -55,22 +55,8 @@
#define GEANY_FILETYPE_SEARCH_LINES 2 /* lines of file to search for filetype */
-/** Dynamic array of filetype pointers
- *
- * List the list is dynamically expanded for custom filetypes filetypes so don't expect
- * the list of known filetypes to be a constant.
- *
- * @elementtype{GeanyFiletype}
- * */
GPtrArray *filetypes_array = NULL;
-
static GHashTable *filetypes_hash = NULL; /* Hash of filetype pointers based on name keys */
-
-/** List of filetype pointers sorted by name, but with @c filetypes_index(GEANY_FILETYPES_NONE)
- * first, as this is usually treated specially.
- * The list does not change (after filetypes have been initialized), so you can use
- * @code g_slist_nth_data(filetypes_by_title, n) @endcode and expect the same result at different times.
- * @see filetypes_get_sorted_by_name(). */
GSList *filetypes_by_title = NULL;
Modified: src/plugindata.h
16 lines changed, 14 insertions(+), 2 deletions(-)
===================================================================
@@ -188,7 +188,14 @@ typedef struct GeanyData
*
* @see documents. */
GPtrArray *documents_array;
- GPtrArray *filetypes_array; /**< Dynamic array of GeanyFiletype pointers. @elementtype{GeanyFiletype} */
+ /** Dynamic array of filetype pointers
+ *
+ * List the list is dynamically expanded for custom filetypes filetypes so don't expect
+ * the list of known filetypes to be a constant.
+ *
+ * @elementtype{GeanyFiletype}
+ */
+ GPtrArray *filetypes_array;
struct GeanyPrefs *prefs; /**< General settings */
struct GeanyInterfacePrefs *interface_prefs; /**< Interface settings */
struct GeanyToolbarPrefs *toolbar_prefs; /**< Toolbar settings */
@@ -198,7 +205,12 @@ typedef struct GeanyData
struct GeanyToolPrefs *tool_prefs; /**< Tool settings */
struct GeanyTemplatePrefs *template_prefs; /**< Template settings */
gpointer *_compat; /* Remove field on next ABI break (abi-todo) */
- GSList *filetypes_by_title; /**< See filetypes.h#filetypes_by_title. */
+ /** List of filetype pointers sorted by name, but with @c filetypes_index(GEANY_FILETYPES_NONE)
+ * first, as this is usually treated specially.
+ * The list does not change (after filetypes have been initialized), so you can use
+ * @code g_slist_nth_data(filetypes_by_title, n) @endcode and expect the same result at different times.
+ * @see filetypes_get_sorted_by_name(). */
+ GSList *filetypes_by_title;
}
GeanyData;
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Thu, 23 Jun 2016 22:03:41 UTC
Commit: f570d408ebe7ea7c47855cc5f982877f7bdbdb2a
https://github.com/geany/geany/commit/f570d408ebe7ea7c47855cc5f982877f7bdbd…
Log Message:
-----------
Update NEWS preparing for next release
Modified Paths:
--------------
NEWS
Modified: NEWS
37 lines changed, 36 insertions(+), 1 deletions(-)
===================================================================
@@ -1,7 +1,42 @@
Geany 1.28 (unreleased)
+ General
+ * Improve support for GTK 3.20.
+ * System filetype files and system tags files are now in sub-directories
+ *filedefs/* and *tags/* respectively (Jiří Techet, PR#485).
+
+ Bug fixes
+ * Fix canceling keybinding overriding by discarding the dialog (Issue#714).
+ * Fix type name coloring when types change (Jiří Techet, PR#1039,
+ Issue#1020, Issue#1022).
+ * Fix undo of line end type change (Jiří Techet, PR#527, Issue#409).
+
+ Editor
+ * Update Scintilla to version 3.6.6.
+ * Improve Goto Symbol popup contents (Jiří Techet, PR#958).
+
+ Filetypes
+ * Treat `.h` headers as C++ by default (Jiří Techet, PR#857).
+ * Various improvements to the Ruby parser (Issue#587).
+ * Fix Haskell single line comments (Alexander, PR#1029).
+ * Update Java keywords (Yan Pashkovsky, #1024).
+ * Fix handling of curly brackets in Make (Masatake YAMATO).
+ * Add ECMAScript 6 keywords (Chris Mayo, PR#980).
+ * Slight improvement to the Java file template (Philipp Wiesemann, PR#1073).
+
Internationalization
- * Updated translations: el
+ * Updated translations: de, el, fr
+
+ Plugins
+ * Class builder: use `.hpp` extension for C++ headers by default
+ (Yan Pashkovsky, PR#999).
+
+ Windows
+ * Show an error if an URI cannot be opened (PR#1079).
+
+ OSX
+ * Fix refreshing the keybindings displayed in the menus (Jiří Techet,
+ PR#973).
Geany 1.27 (March 13, 2016)
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Thu, 23 Jun 2016 21:34:19 UTC
Commit: d6c98f5ae671a2fd0cb5102a9927a4c2f34f4986
https://github.com/geany/geany/commit/d6c98f5ae671a2fd0cb5102a9927a4c2f34f4…
Log Message:
-----------
Merge pull request #966 from codebrainz/private-globals
Privatize global and publicize docs
Modified Paths:
--------------
src/document.c
src/document.h
src/filetypes.c
src/plugindata.h
Modified: src/document.c
22 lines changed, 2 insertions(+), 20 deletions(-)
===================================================================
@@ -86,24 +86,6 @@
GeanyFilePrefs file_prefs;
-
-
-/** Dynamic array of GeanyDocument pointers.
- * Once a pointer is added to this, it is never freed. This means the same document pointer
- * can represent a different document later on, or it may have been closed and become invalid.
- * For this reason, you should use document_find_by_id() instead of storing
- * document pointers over time if there is a chance the user can close the
- * document.
- *
- * @warning You must check @c GeanyDocument::is_valid when iterating over this array.
- * This is done automatically if you use the foreach_document() macro.
- *
- * @note
- * Never assume that the order of document pointers is the same as the order of notebook tabs.
- * One reason is that notebook tabs can be reordered.
- * Use @c document_get_from_page() to lookup a document from a notebook tab number.
- *
- * @see documents. */
GPtrArray *documents_array = NULL;
@@ -3331,9 +3313,9 @@ const GdkColor *document_get_status_color(GeanyDocument *doc)
}
-/** Accessor function for @ref documents_array items.
+/** Accessor function for @ref GeanyData::documents_array items.
* @warning Always check the returned document is valid (@c doc->is_valid).
- * @param idx @c documents_array index.
+ * @param idx @c GeanyData::documents_array index.
* @return @transfer{none} @nullable The document, or @c NULL if @a idx is out of range.
*
* @since 0.16
Modified: src/document.h
9 lines changed, 4 insertions(+), 5 deletions(-)
===================================================================
@@ -78,7 +78,7 @@ GType document_get_type (void);
**/
typedef struct GeanyDocument
{
- /** Flag used to check if this document is valid when iterating @ref documents_array. */
+ /** Flag used to check if this document is valid when iterating @ref GeanyData::documents_array. */
gboolean is_valid;
gint index; /**< Index in the documents array. */
/** Whether this document supports source code symbols(tags) to show in the sidebar. */
@@ -121,9 +121,7 @@ typedef struct GeanyDocument
}
GeanyDocument;
-extern GPtrArray *documents_array;
-
-/** Wraps @ref documents_array so it can be used with C array syntax.
+/** Wraps @ref GeanyData::documents_array so it can be used with C array syntax.
* @warning Always check the returned document is valid (@c doc->is_valid).
*
* Example: @code GeanyDocument *doc = documents[i]; @endcode
@@ -140,7 +138,7 @@ extern GPtrArray *documents_array;
/** Iterates all valid document indexes.
* Use like a @c for statement.
- * @param i @c guint index for @ref documents_array.
+ * @param i @c guint index for @ref GeanyData::documents_array.
*
* Example:
* @code
@@ -234,6 +232,7 @@ GeanyDocument *document_find_by_id(guint id);
#endif
extern GeanyFilePrefs file_prefs;
+extern GPtrArray *documents_array;
/* These functions will replace the older functions. For now they have a documents_ prefix. */
Modified: src/filetypes.c
14 lines changed, 0 insertions(+), 14 deletions(-)
===================================================================
@@ -55,22 +55,8 @@
#define GEANY_FILETYPE_SEARCH_LINES 2 /* lines of file to search for filetype */
-/** Dynamic array of filetype pointers
- *
- * List the list is dynamically expanded for custom filetypes filetypes so don't expect
- * the list of known filetypes to be a constant.
- *
- * @elementtype{GeanyFiletype}
- * */
GPtrArray *filetypes_array = NULL;
-
static GHashTable *filetypes_hash = NULL; /* Hash of filetype pointers based on name keys */
-
-/** List of filetype pointers sorted by name, but with @c filetypes_index(GEANY_FILETYPES_NONE)
- * first, as this is usually treated specially.
- * The list does not change (after filetypes have been initialized), so you can use
- * @code g_slist_nth_data(filetypes_by_title, n) @endcode and expect the same result at different times.
- * @see filetypes_get_sorted_by_name(). */
GSList *filetypes_by_title = NULL;
Modified: src/plugindata.h
34 lines changed, 31 insertions(+), 3 deletions(-)
===================================================================
@@ -171,8 +171,31 @@ typedef struct GeanyData
{
struct GeanyApp *app; /**< Geany application data fields */
struct GeanyMainWidgets *main_widgets; /**< Important widgets in the main window */
- GPtrArray *documents_array; /**< See document.h#documents_array. @elementtype{GeanyDocument} */
- GPtrArray *filetypes_array; /**< Dynamic array of GeanyFiletype pointers. @elementtype{GeanyFiletype} */
+ /** Dynamic array of GeanyDocument pointers.
+ * Once a pointer is added to this, it is never freed. This means the same document pointer
+ * can represent a different document later on, or it may have been closed and become invalid.
+ * For this reason, you should use document_find_by_id() instead of storing
+ * document pointers over time if there is a chance the user can close the
+ * document.
+ *
+ * @warning You must check @c GeanyDocument::is_valid when iterating over this array.
+ * This is done automatically if you use the foreach_document() macro.
+ *
+ * @note
+ * Never assume that the order of document pointers is the same as the order of notebook tabs.
+ * One reason is that notebook tabs can be reordered.
+ * Use @c document_get_from_page() to lookup a document from a notebook tab number.
+ *
+ * @see documents. */
+ GPtrArray *documents_array;
+ /** Dynamic array of filetype pointers
+ *
+ * List the list is dynamically expanded for custom filetypes filetypes so don't expect
+ * the list of known filetypes to be a constant.
+ *
+ * @elementtype{GeanyFiletype}
+ */
+ GPtrArray *filetypes_array;
struct GeanyPrefs *prefs; /**< General settings */
struct GeanyInterfacePrefs *interface_prefs; /**< Interface settings */
struct GeanyToolbarPrefs *toolbar_prefs; /**< Toolbar settings */
@@ -182,7 +205,12 @@ typedef struct GeanyData
struct GeanyToolPrefs *tool_prefs; /**< Tool settings */
struct GeanyTemplatePrefs *template_prefs; /**< Template settings */
gpointer *_compat; /* Remove field on next ABI break (abi-todo) */
- GSList *filetypes_by_title; /**< See filetypes.h#filetypes_by_title. */
+ /** List of filetype pointers sorted by name, but with @c filetypes_index(GEANY_FILETYPES_NONE)
+ * first, as this is usually treated specially.
+ * The list does not change (after filetypes have been initialized), so you can use
+ * @code g_slist_nth_data(filetypes_by_title, n) @endcode and expect the same result at different times.
+ * @see filetypes_get_sorted_by_name(). */
+ GSList *filetypes_by_title;
/** @gironly
* Global object signalling events via signals
*
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Thu, 23 Jun 2016 21:30:39 UTC
Commit: 72482e8e328d9a39c5d9a9c997ff0b22200d802d
https://github.com/geany/geany/commit/72482e8e328d9a39c5d9a9c997ff0b22200d8…
Log Message:
-----------
docs: Fix references to renamed symbols
Modified Paths:
--------------
src/document.c
src/document.h
Modified: src/document.c
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -3273,9 +3273,9 @@ const GdkColor *document_get_status_color(GeanyDocument *doc)
}
-/** Accessor function for @ref documents_array items.
+/** Accessor function for @ref GeanyData::documents_array items.
* @warning Always check the returned document is valid (@c doc->is_valid).
- * @param idx @c documents_array index.
+ * @param idx @c GeanyData::documents_array index.
* @return @transfer{none} @nullable The document, or @c NULL if @a idx is out of range.
*
* @since 0.16
Modified: src/document.h
6 lines changed, 3 insertions(+), 3 deletions(-)
===================================================================
@@ -75,7 +75,7 @@ GeanyFilePrefs;
**/
typedef struct GeanyDocument
{
- /** Flag used to check if this document is valid when iterating @ref documents_array. */
+ /** Flag used to check if this document is valid when iterating @ref GeanyData::documents_array. */
gboolean is_valid;
gint index; /**< Index in the documents array. */
/** Whether this document supports source code symbols(tags) to show in the sidebar. */
@@ -118,7 +118,7 @@ typedef struct GeanyDocument
}
GeanyDocument;
-/** Wraps @ref documents_array so it can be used with C array syntax.
+/** Wraps @ref GeanyData::documents_array so it can be used with C array syntax.
* @warning Always check the returned document is valid (@c doc->is_valid).
*
* Example: @code GeanyDocument *doc = documents[i]; @endcode
@@ -135,7 +135,7 @@ GeanyDocument;
/** Iterates all valid document indexes.
* Use like a @c for statement.
- * @param i @c guint index for @ref documents_array.
+ * @param i @c guint index for @ref GeanyData::documents_array.
*
* Example:
* @code
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).