Revision: 101 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=101&view=rev Author: ntrel Date: 2008-07-02 10:05:48 -0700 (Wed, 02 Jul 2008)
Log Message: ----------- Rename document -> GeanyDocument.
Modified Paths: -------------- trunk/geanylua/ChangeLog trunk/geanylua/glspi.h trunk/geanylua/glspi_app.c trunk/geanylua/glspi_doc.c trunk/geanylua/glspi_run.c trunk/geanylua/glspi_sci.c
Modified: trunk/geanylua/ChangeLog =================================================================== --- trunk/geanylua/ChangeLog 2008-07-02 16:55:01 UTC (rev 100) +++ trunk/geanylua/ChangeLog 2008-07-02 17:05:48 UTC (rev 101) @@ -4,6 +4,7 @@ Update for new PLUGIN_ macro names. Add comment about reloading in glspi_open(). Rename GeanyCallbacks, geany_callbacks symbol. + Rename document -> GeanyDocument.
July 1, 2008 (ntrel) Begin updating for Geany 0.15 API changes.
Modified: trunk/geanylua/glspi.h =================================================================== --- trunk/geanylua/glspi.h 2008-07-02 16:55:01 UTC (rev 100) +++ trunk/geanylua/glspi.h 2008-07-02 17:05:48 UTC (rev 101) @@ -57,7 +57,7 @@
#define DOC_REQUIRED \ - document *doc = p_document->get_current();\ + GeanyDocument *doc = p_document->get_current();\ if (!(doc && doc->sci)) {return 0;}
Modified: trunk/geanylua/glspi_app.c =================================================================== --- trunk/geanylua/glspi_app.c 2008-07-02 16:55:01 UTC (rev 100) +++ trunk/geanylua/glspi_app.c 2008-07-02 17:05:48 UTC (rev 101) @@ -559,7 +559,7 @@
static gint glspi_keygrab(lua_State* L) { - document*doc=NULL; + GeanyDocument*doc=NULL; const gchar*prompt=NULL; GdkKeymapKey km={0,0,0}; km.keycode=0;
Modified: trunk/geanylua/glspi_doc.c =================================================================== --- trunk/geanylua/glspi_doc.c 2008-07-02 16:55:01 UTC (rev 100) +++ trunk/geanylua/glspi_doc.c 2008-07-02 17:05:48 UTC (rev 101) @@ -74,7 +74,7 @@ /* Returns the filename of the specified document, or NULL on bad index */ static const gchar* doc_idx_to_filename(gint idx) { if ( (idx >= 0 ) && ( ((guint)idx) < doc_array->len ) ) { - document *doc=g_ptr_array_index(doc_array, idx); + GeanyDocument *doc=g_ptr_array_index(doc_array, idx); if (doc) { return doc->file_name?doc->file_name:GEANY_STRING_UNTITLED; } } return NULL;
Modified: trunk/geanylua/glspi_run.c =================================================================== --- trunk/geanylua/glspi_run.c 2008-07-02 16:55:01 UTC (rev 100) +++ trunk/geanylua/glspi_run.c 2008-07-02 17:05:48 UTC (rev 101) @@ -46,7 +46,7 @@ */ static void repaint_scintilla(void) { - document* doc=p_document->get_current(); + GeanyDocument* doc=p_document->get_current(); if ( doc && doc->is_valid ) { gdk_window_invalidate_rect(GTK_WIDGET(doc->sci)->window, NULL, TRUE); gdk_window_process_updates(GTK_WIDGET(doc->sci)->window, TRUE);
Modified: trunk/geanylua/glspi_sci.c =================================================================== --- trunk/geanylua/glspi_sci.c 2008-07-02 16:55:01 UTC (rev 100) +++ trunk/geanylua/glspi_sci.c 2008-07-02 17:05:48 UTC (rev 101) @@ -19,7 +19,7 @@ static gint glspi_text(lua_State* L) {
- document *doc = p_document->get_current(); + GeanyDocument *doc = p_document->get_current();
if ((!doc) || (!doc->sci)) { return 0; } if (0 == lua_gettop(L)) { /* Called with no args, GET the current text */ @@ -276,7 +276,7 @@ Pushes the line of text onto the Lua stack from the specified line number. Return FALSE only if the index is out of bounds. */ -static gchar* get_line_text(document*doc,gint linenum) +static gchar* get_line_text(GeanyDocument*doc,gint linenum) { gint count=p_sci->get_line_count(doc->sci); if ((linenum>0)&&(linenum<=count)) { @@ -295,7 +295,7 @@ static gint lines_closure(lua_State *L) { gint idx=lua_tonumber(L, lua_upvalueindex(1))+1; - document *doc=lua_touserdata(L,lua_upvalueindex(2)); + GeanyDocument *doc=lua_touserdata(L,lua_upvalueindex(2)); gchar *text=get_line_text(doc,idx); if ( text ) { push_number(L, idx);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org