Revision: 1884 http://geany.svn.sourceforge.net/geany/?rev=1884&view=rev Author: ntrel Date: 2007-09-17 04:16:48 -0700 (Mon, 17 Sep 2007)
Log Message: ----------- Apply patch from blackdog to add build_info and msgwindow->compiler_add() to the plugin API (thanks).
Modified Paths: -------------- trunk/ChangeLog trunk/src/build.h trunk/src/plugindata.h trunk/src/plugins.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2007-09-13 16:54:25 UTC (rev 1883) +++ trunk/ChangeLog 2007-09-17 11:16:48 UTC (rev 1884) @@ -1,3 +1,10 @@ +2007-09-17 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com> + + * src/build.h, src/plugindata.h, src/plugins.c: + Apply patch from blackdog to add build_info and + msgwindow->compiler_add() to the plugin API (thanks). + + 2007-09-13 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/callbacks.c:
Modified: trunk/src/build.h =================================================================== --- trunk/src/build.h 2007-09-13 16:54:25 UTC (rev 1883) +++ trunk/src/build.h 2007-09-17 11:16:48 UTC (rev 1884) @@ -34,7 +34,7 @@ GBO_MAKE_OBJECT } build_type;
-typedef struct +typedef struct BuildInfo { build_type type; // current action(one of the above enumeration) GPid pid; // process id of the spawned process @@ -45,7 +45,8 @@
extern BuildInfo build_info;
-typedef struct + +typedef struct BuildMenuItems { GtkWidget *menu; GtkWidget *item_compile;
Modified: trunk/src/plugindata.h =================================================================== --- trunk/src/plugindata.h 2007-09-13 16:54:25 UTC (rev 1883) +++ trunk/src/plugindata.h 2007-09-17 11:16:48 UTC (rev 1884) @@ -71,12 +71,12 @@
/* The API version should be incremented whenever any plugin data types below are * modified. */ -static const gint api_version = 18; +static const gint api_version = 19;
/* The ABI version should be incremented whenever existing fields in the plugin * data types below have to be changed or reordered. It should stay the same if fields * are only appended, as this doesn't affect existing fields. */ -static const gint abi_version = 9; +static const gint abi_version = 10;
/* This performs runtime checks that try to ensure: * 1. Geany ABI data types are compatible with this plugin. @@ -148,6 +148,7 @@ struct filetype **filetypes; struct GeanyPrefs *prefs; struct EditorPrefs *editor_prefs; + struct BuildInfo *build_info;
struct DocumentFuncs *document; struct ScintillaFuncs *sci; @@ -226,7 +227,7 @@
typedef struct TemplateFuncs { - gchar* (*get_template_fileheader) (gint filetype_idx, const gchar *fname); + gchar* (*get_template_fileheader) (gint filetype_idx, const gchar *fname); } TemplateFuncs;
@@ -267,6 +268,7 @@ typedef struct MsgWinFuncs { void (*status_add) (const gchar *format, ...); + void (*compiler_add) (gint msg_color, const gchar *format, ...) G_GNUC_PRINTF (2, 3); } MsgWinFuncs;
Modified: trunk/src/plugins.c =================================================================== --- trunk/src/plugins.c 2007-09-13 16:54:25 UTC (rev 1883) +++ trunk/src/plugins.c 2007-09-17 11:16:48 UTC (rev 1884) @@ -47,7 +47,9 @@ #include "msgwindow.h" #include "prefs.h" #include "geanyobject.h" +#include "build.h"
+ #ifdef G_OS_WIN32 # define PLUGIN_EXT "dll" #else @@ -147,7 +149,8 @@ };
static MsgWinFuncs msgwin_funcs = { - &msgwin_status_add + &msgwin_status_add, + &msgwin_compiler_add_fmt };
@@ -158,6 +161,7 @@ NULL, NULL, NULL, + NULL,
&doc_funcs, &sci_funcs, @@ -179,6 +183,7 @@ geany_data.filetypes = filetypes; geany_data.prefs = &prefs; geany_data.editor_prefs = &editor_prefs; + geany_data.build_info = &build_info; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.