Skip to content

Commit

Permalink
Merge pull request #388 from techee/remove_deprecated
Browse files Browse the repository at this point in the history
Remove deprecated GeanyFunctions
  • Loading branch information
frlan committed Mar 8, 2016
2 parents 42afeae + 5267981 commit a042d1d
Show file tree
Hide file tree
Showing 60 changed files with 32 additions and 104 deletions.
3 changes: 1 addition & 2 deletions autoclose/src/autoclose.c
Expand Up @@ -41,9 +41,8 @@

GeanyPlugin *geany_plugin;
GeanyData *geany_data;
GeanyFunctions *geany_functions;

PLUGIN_VERSION_CHECK(218)
PLUGIN_VERSION_CHECK(224)
PLUGIN_SET_TRANSLATABLE_INFO(
LOCALEDIR,
GETTEXT_PACKAGE,
Expand Down
3 changes: 1 addition & 2 deletions automark/src/automark.c
Expand Up @@ -39,9 +39,8 @@

GeanyPlugin *geany_plugin;
GeanyData *geany_data;
GeanyFunctions *geany_functions;

PLUGIN_VERSION_CHECK(216)
PLUGIN_VERSION_CHECK(224)
PLUGIN_SET_TRANSLATABLE_INFO(
LOCALEDIR,
GETTEXT_PACKAGE,
Expand Down
3 changes: 1 addition & 2 deletions codenav/src/codenavigation.c
Expand Up @@ -34,7 +34,7 @@

/* Check that the running Geany supports the plugin API used below, and check
* for binary compatibility. */
PLUGIN_VERSION_CHECK(200)
PLUGIN_VERSION_CHECK(224)

/* All plugins must set name, description, version and author. */
PLUGIN_SET_TRANSLATABLE_INFO(
Expand Down Expand Up @@ -63,7 +63,6 @@ typedef enum
/* These items are set by Geany before plugin_init() is called. */
GeanyPlugin *geany_plugin;
GeanyData *geany_data;
GeanyFunctions *geany_functions;

static GtkListStore *list_store; /* for settings dialog */

Expand Down
2 changes: 0 additions & 2 deletions codenav/src/codenavigation.h
Expand Up @@ -42,7 +42,6 @@

/* Last */
#include "plugindata.h" /* this defines the plugin API */
#include "geanyfunctions.h" /* this wraps geany_functions function pointers */

/* Debug flag */
/*#define CODE_NAVIGATION_DEBUG*/
Expand Down Expand Up @@ -81,7 +80,6 @@ enum
/* Items for controlling geany */
extern GeanyPlugin *geany_plugin;
extern GeanyData *geany_data;
extern GeanyFunctions *geany_functions;

extern GeanyKeyGroup *plugin_key_group;

Expand Down
3 changes: 1 addition & 2 deletions commander/src/commander-plugin.c
Expand Up @@ -34,9 +34,8 @@

GeanyPlugin *geany_plugin;
GeanyData *geany_data;
GeanyFunctions *geany_functions;

PLUGIN_VERSION_CHECK(205)
PLUGIN_VERSION_CHECK(224)

PLUGIN_SET_TRANSLATABLE_INFO (
LOCALEDIR, GETTEXT_PACKAGE,
Expand Down
1 change: 0 additions & 1 deletion debugger/src/breakpoints.c
Expand Up @@ -28,7 +28,6 @@
#include <string.h>

#include "geanyplugin.h"
extern GeanyFunctions *geany_functions;

#include "breakpoints.h"
#include "utils.h"
Expand Down
1 change: 0 additions & 1 deletion debugger/src/btnpanel.c
Expand Up @@ -30,7 +30,6 @@
#endif
#include <geanyplugin.h>

extern GeanyFunctions *geany_functions;
extern GeanyPlugin *geany_plugin;

#include "gui.h"
Expand Down
1 change: 0 additions & 1 deletion debugger/src/callbacks.c
Expand Up @@ -44,7 +44,6 @@
#include "dconfig.h"
#include "tabs.h"

extern GeanyFunctions *geany_functions;

/*
* Set breakpoint and stack markers for a file
Expand Down
1 change: 0 additions & 1 deletion debugger/src/dbm_gdb.c
Expand Up @@ -33,7 +33,6 @@
#include "config.h"
#endif
#include <geanyplugin.h>
extern GeanyFunctions *geany_functions;
extern GeanyData *geany_data;

#include "breakpoint.h"
Expand Down
1 change: 0 additions & 1 deletion debugger/src/debug.c
Expand Up @@ -56,7 +56,6 @@ int grantpt(int fd);
#include "config.h"
#endif
#include <geanyplugin.h>
extern GeanyFunctions *geany_functions;
extern GeanyData *geany_data;

#include "tpage.h"
Expand Down
1 change: 0 additions & 1 deletion debugger/src/dpaned.c
Expand Up @@ -30,7 +30,6 @@
#include <string.h>

#include "geanyplugin.h"
extern GeanyFunctions *geany_functions;
extern GeanyData *geany_data;

#include "dpaned.h"
Expand Down
1 change: 0 additions & 1 deletion debugger/src/envtree.c
Expand Up @@ -30,7 +30,6 @@
#endif
#include <geanyplugin.h>

extern GeanyFunctions *geany_functions;
extern GeanyPlugin *geany_plugin;

#include <gdk/gdkkeysyms.h>
Expand Down
1 change: 0 additions & 1 deletion debugger/src/keys.c
Expand Up @@ -28,7 +28,6 @@
#endif
#include <geanyplugin.h>

extern GeanyFunctions *geany_functions;
extern GeanyPlugin *geany_plugin;

#include "keys.h"
Expand Down
1 change: 0 additions & 1 deletion debugger/src/markers.c
Expand Up @@ -26,7 +26,6 @@
#include <string.h>

#include "geanyplugin.h"
extern GeanyFunctions *geany_functions;
extern GeanyData *geany_data;

#include "markers.h"
Expand Down
3 changes: 1 addition & 2 deletions debugger/src/plugin.c
Expand Up @@ -44,12 +44,11 @@
/* These items are set by Geany before plugin_init() is called. */
GeanyPlugin *geany_plugin;
GeanyData *geany_data;
GeanyFunctions *geany_functions;


/* Check that the running Geany supports the plugin API version used below, and check
* for binary compatibility. */
PLUGIN_VERSION_CHECK(209)
PLUGIN_VERSION_CHECK(224)
PLUGIN_SET_TRANSLATABLE_INFO(
LOCALEDIR,
GETTEXT_PACKAGE,
Expand Down
1 change: 0 additions & 1 deletion debugger/src/tabs.c
Expand Up @@ -29,7 +29,6 @@
#endif
#include <geanyplugin.h>

extern GeanyFunctions *geany_functions;
extern GeanyData *geany_data;

#include "tabs.h"
Expand Down
1 change: 0 additions & 1 deletion debugger/src/tpage.c
Expand Up @@ -34,7 +34,6 @@
#endif
#include "geanyplugin.h"

extern GeanyFunctions *geany_functions;
extern GeanyData *geany_data;

#include "breakpoints.h"
Expand Down
1 change: 0 additions & 1 deletion debugger/src/utils.c
Expand Up @@ -36,7 +36,6 @@
#include "config.h"
#endif
#include <geanyplugin.h>
extern GeanyFunctions *geany_functions;

#include "utils.h"

Expand Down
3 changes: 1 addition & 2 deletions defineformat/src/defineformat.c
Expand Up @@ -47,9 +47,8 @@

GeanyPlugin *geany_plugin;
GeanyData *geany_data;
GeanyFunctions *geany_functions;

PLUGIN_VERSION_CHECK(216)
PLUGIN_VERSION_CHECK(224)
PLUGIN_SET_TRANSLATABLE_INFO(
LOCALEDIR,
GETTEXT_PACKAGE,
Expand Down
3 changes: 1 addition & 2 deletions devhelp/src/dhp-plugin.c
Expand Up @@ -36,7 +36,7 @@
#include "dhp.h"


PLUGIN_VERSION_CHECK(200)
PLUGIN_VERSION_CHECK(224)

PLUGIN_SET_TRANSLATABLE_INFO(
LOCALEDIR,
Expand All @@ -49,7 +49,6 @@ PLUGIN_SET_TRANSLATABLE_INFO(

GeanyPlugin *geany_plugin;
GeanyData *geany_data;
GeanyFunctions *geany_functions;

struct PluginData plugin;

Expand Down
1 change: 0 additions & 1 deletion devhelp/src/dhp-plugin.h
Expand Up @@ -31,7 +31,6 @@

extern GeanyPlugin *geany_plugin;
extern GeanyData *geany_data;
extern GeanyFunctions *geany_functions;


struct PluginData
Expand Down
1 change: 0 additions & 1 deletion geanydoc/src/config.c
Expand Up @@ -29,7 +29,6 @@
#include "geanydoc.h"

extern GeanyData *geany_data;
extern GeanyFunctions *geany_functions;

const gchar defaults[] =
"[C]\n"
Expand Down
3 changes: 1 addition & 2 deletions geanydoc/src/geanydoc.c
Expand Up @@ -37,15 +37,14 @@
/* These items are set by Geany before init() is called. */
PluginFields *plugin_fields;
GeanyData *geany_data;
GeanyFunctions *geany_functions;

static GtkWidget *keyb1;
static GtkWidget *keyb2;


/* Check that Geany supports plugin API version 128 or later, and check
* for binary compatibility. */
PLUGIN_VERSION_CHECK(128)
PLUGIN_VERSION_CHECK(224)
/* All plugins must set name, description, version and author. */
PLUGIN_SET_TRANSLATABLE_INFO(LOCALEDIR, GETTEXT_PACKAGE,
_("Doc"), _("Call documentation viewer on current symbol."), VERSION,
Expand Down
3 changes: 1 addition & 2 deletions geanyextrasel/src/extrasel.c
Expand Up @@ -27,9 +27,8 @@

GeanyPlugin *geany_plugin;
GeanyData *geany_data;
GeanyFunctions *geany_functions;

PLUGIN_VERSION_CHECK(189)
PLUGIN_VERSION_CHECK(224)

PLUGIN_SET_TRANSLATABLE_INFO(LOCALEDIR, GETTEXT_PACKAGE,
_("Extra Selection"), _("Column mode, select to line / brace / anchor."),
Expand Down
3 changes: 1 addition & 2 deletions geanygendoc/src/ggd-plugin.c
Expand Up @@ -47,10 +47,9 @@
/* These items are set by Geany before plugin_init() is called. */
GeanyPlugin *geany_plugin;
GeanyData *geany_data;
GeanyFunctions *geany_functions;

/* TODO check minimum requierment */
PLUGIN_VERSION_CHECK (221)
PLUGIN_VERSION_CHECK (224)

PLUGIN_SET_TRANSLATABLE_INFO (
LOCALEDIR, GETTEXT_PACKAGE,
Expand Down
1 change: 0 additions & 1 deletion geanygendoc/src/ggd-plugin.h
Expand Up @@ -39,7 +39,6 @@ G_BEGIN_DECLS
/* Note that this cannot be hidden since it is accessed by the Geany instance */
extern GeanyPlugin *geany_plugin;
extern GeanyData *geany_data;
extern GeanyFunctions *geany_functions;


/* Begin of the plugin's self API */
Expand Down
3 changes: 1 addition & 2 deletions geanyinsertnum/src/insertnum.c
Expand Up @@ -37,9 +37,8 @@

GeanyPlugin *geany_plugin;
GeanyData *geany_data;
GeanyFunctions *geany_functions;

PLUGIN_VERSION_CHECK(189)
PLUGIN_VERSION_CHECK(224)

PLUGIN_SET_TRANSLATABLE_INFO(LOCALEDIR, GETTEXT_PACKAGE,
_("Insert Numbers"), _("Insert/Fill columns with numbers."),
Expand Down
3 changes: 1 addition & 2 deletions geanylatex/src/geanylatex.c
Expand Up @@ -33,7 +33,7 @@
#include "geanylatex.h"
#include "ctype.h"

PLUGIN_VERSION_CHECK(217)
PLUGIN_VERSION_CHECK(224)

PLUGIN_SET_TRANSLATABLE_INFO(
LOCALEDIR,
Expand All @@ -45,7 +45,6 @@ PLUGIN_SET_TRANSLATABLE_INFO(

GeanyPlugin *geany_plugin;
GeanyData *geany_data;
GeanyFunctions *geany_functions;

/* Widgets for plugin */
static GtkWidget *menu_latex = NULL;
Expand Down
1 change: 0 additions & 1 deletion geanylatex/src/geanylatex.h
Expand Up @@ -46,7 +46,6 @@ typedef void (*MenuCallback) (G_GNUC_UNUSED GtkMenuItem * menuitem, G_GNUC_UNUSE

extern GeanyPlugin *geany_plugin;
extern GeanyData *geany_data;
extern GeanyFunctions *geany_functions;


#define create_sub_menu(base_menu, menu, item, title) \
Expand Down
3 changes: 1 addition & 2 deletions geanylipsum/src/geanylipsum.c
Expand Up @@ -31,9 +31,8 @@

GeanyPlugin *geany_plugin;
GeanyData *geany_data;
GeanyFunctions *geany_functions;

PLUGIN_VERSION_CHECK(188)
PLUGIN_VERSION_CHECK(224)
PLUGIN_SET_TRANSLATABLE_INFO(
LOCALEDIR,
GETTEXT_PACKAGE,
Expand Down
3 changes: 1 addition & 2 deletions geanymacro/src/geanymacro.c
Expand Up @@ -174,9 +174,8 @@ enum GEANY_MACRO_BUTTON {

GeanyPlugin *geany_plugin;
GeanyData *geany_data;
GeanyFunctions *geany_functions;

PLUGIN_VERSION_CHECK(147)
PLUGIN_VERSION_CHECK(224)

PLUGIN_SET_TRANSLATABLE_INFO(LOCALEDIR, GETTEXT_PACKAGE,
_("Macros"),_("Macros for Geany"),
Expand Down
3 changes: 1 addition & 2 deletions geanyminiscript/src/gms.c
Expand Up @@ -45,12 +45,11 @@

GeanyPlugin *geany_plugin;
GeanyData *geany_data;
GeanyFunctions *geany_functions;


/* Check that the running Geany supports the plugin API used below, and check
* for binary compatibility. */
PLUGIN_VERSION_CHECK(100)
PLUGIN_VERSION_CHECK(224)

/* All plugins must set name, description, version and author. */
PLUGIN_SET_TRANSLATABLE_INFO(
Expand Down
1 change: 0 additions & 1 deletion geanyminiscript/src/gms.h
Expand Up @@ -27,7 +27,6 @@

extern GeanyPlugin *geany_plugin;
extern GeanyData *geany_data;
extern GeanyFunctions *geany_functions;


#endif /* GMS_H */
3 changes: 1 addition & 2 deletions geanynumberedbookmarks/src/geanynumberedbookmarks.c
Expand Up @@ -52,9 +52,8 @@ typedef struct FileData

GeanyPlugin *geany_plugin;
GeanyData *geany_data;
GeanyFunctions *geany_functions;

PLUGIN_VERSION_CHECK(147)
PLUGIN_VERSION_CHECK(224)

PLUGIN_SET_TRANSLATABLE_INFO(LOCALEDIR, GETTEXT_PACKAGE,
"Numbered Bookmarks",
Expand Down
3 changes: 1 addition & 2 deletions geanypg/src/geanypg.c
Expand Up @@ -23,11 +23,10 @@
/* These items are set by Geany before plugin_init() is called. */
GeanyPlugin *geany_plugin;
GeanyData *geany_data;
GeanyFunctions *geany_functions;

/* Check that the running Geany supports the plugin API version used below, and check
* for binary compatibility. */
PLUGIN_VERSION_CHECK(201)
PLUGIN_VERSION_CHECK(224)

/* All plugins must set name, description, version and author. */
PLUGIN_SET_TRANSLATABLE_INFO(
Expand Down
1 change: 0 additions & 1 deletion geanypg/src/geanypg.h
Expand Up @@ -54,7 +54,6 @@ typedef struct

extern GeanyPlugin *geany_plugin;
extern GeanyData *geany_data;
extern GeanyFunctions *geany_functions;

/* auxiliary functions (helper_functions.c) */
void geanypg_init_ed(encrypt_data * ed);
Expand Down
3 changes: 1 addition & 2 deletions geanyprj/src/geanyprj.c
Expand Up @@ -34,13 +34,12 @@

#include "geanyprj.h"

PLUGIN_VERSION_CHECK(221)
PLUGIN_VERSION_CHECK(224)
PLUGIN_SET_TRANSLATABLE_INFO(LOCALEDIR, GETTEXT_PACKAGE,
"GeanyPrj", _("Alternative project support."), VERSION,
"Yura Siamashka <yurand2@gmail.com>")

GeanyData *geany_data;
GeanyFunctions *geany_functions;


static gchar *config_file;
Expand Down

0 comments on commit a042d1d

Please sign in to comment.