[geany/geany] b22fbe: Mark deprecated API so GCC can warn about it
Colomban Wendling
git-noreply at xxxxx
Sun Feb 21 01:09:45 UTC 2016
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Sun, 21 Feb 2016 01:09:45 UTC
Commit: b22fbe734c48a62981723fc376cf13bac1ee2548
https://github.com/geany/geany/commit/b22fbe734c48a62981723fc376cf13bac1ee2548
Log Message:
-----------
Mark deprecated API so GCC can warn about it
Also suggest replacement when appropriate.
Modified Paths:
--------------
src/plugindata.h
src/sciwrappers.h
src/ui_utils.h
Modified: src/plugindata.h
6 lines changed, 3 insertions(+), 3 deletions(-)
===================================================================
@@ -354,7 +354,7 @@ gint geany_plugin_register_proxy(GeanyPlugin *plugin, const gchar **extensions);
/* This remains so that older plugins that contain a `GeanyFunctions *geany_functions;`
* variable in their plugin - as was previously required - will still compile
* without changes. */
-typedef struct GeanyFunctionsUndefined GeanyFunctions;
+typedef struct GeanyFunctionsUndefined GeanyFunctions G_GNUC_DEPRECATED;
/** @deprecated - use plugin_set_key_group() instead.
* @see PLUGIN_KEY_GROUP() macro. */
@@ -363,7 +363,7 @@ typedef struct GeanyKeyGroupInfo
const gchar *name; /**< Group name used in the configuration file, such as @c "html_chars" */
gsize count; /**< The number of keybindings the group will hold */
}
-GeanyKeyGroupInfo;
+GeanyKeyGroupInfo G_GNUC_DEPRECATED_FOR(plugin_set_key_group);
/** @deprecated - use plugin_set_key_group() instead.
* Declare and initialise a keybinding group.
@@ -404,7 +404,7 @@ typedef struct PluginFields
* This is required if using @c PLUGIN_IS_DOCUMENT_SENSITIVE, ignored otherwise */
GtkWidget *menu_item;
}
-PluginFields;
+PluginFields G_GNUC_DEPRECATED_FOR(ui_add_document_sensitive);
#define document_reload_file document_reload_force
Modified: src/sciwrappers.h
6 lines changed, 3 insertions(+), 3 deletions(-)
===================================================================
@@ -93,9 +93,9 @@ gint sci_get_line_indentation (ScintillaObject *sci, gint line);
gint sci_find_matching_brace (ScintillaObject *sci, gint pos);
#ifndef GEANY_DISABLE_DEPRECATED
-void sci_get_text (ScintillaObject *sci, gint len, gchar *text);
-void sci_get_selected_text (ScintillaObject *sci, gchar *text);
-void sci_get_text_range (ScintillaObject *sci, gint start, gint end, gchar *text);
+void sci_get_text (ScintillaObject *sci, gint len, gchar *text) G_GNUC_DEPRECATED_FOR(sci_get_contents);
+void sci_get_selected_text (ScintillaObject *sci, gchar *text) G_GNUC_DEPRECATED_FOR(sci_get_selection_contents);
+void sci_get_text_range (ScintillaObject *sci, gint start, gint end, gchar *text) G_GNUC_DEPRECATED_FOR(sci_get_contents_range);
#endif /* GEANY_DISABLE_DEPRECATED */
#ifdef GEANY_PRIVATE
Modified: src/ui_utils.h
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -142,7 +142,7 @@ void ui_tree_view_set_tooltip_text_column(GtkTreeView *tree_view, gint column);
#ifndef GEANY_DISABLE_DEPRECATED
-void ui_widget_set_tooltip_text(GtkWidget *widget, const gchar *text);
+void ui_widget_set_tooltip_text(GtkWidget *widget, const gchar *text) G_GNUC_DEPRECATED_FOR(gtk_widget_set_tooltip_text);
#endif /* GEANY_DISABLE_DEPRECATED */
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list