Revision: 174 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=174&view=rev Author: ntrel Date: 2008-09-11 15:40:45 +0000 (Thu, 11 Sep 2008)
Log Message: ----------- Fix document signal callbacks to use document pointers.
Modified Paths: -------------- trunk/geanylua/ChangeLog trunk/geanylua/glspi_init.c
Modified: trunk/geanylua/ChangeLog =================================================================== --- trunk/geanylua/ChangeLog 2008-09-11 15:34:47 UTC (rev 173) +++ trunk/geanylua/ChangeLog 2008-09-11 15:40:45 UTC (rev 174) @@ -1,5 +1,6 @@ September 11, 2008 (ntrel) Fix wrong argument for "project-close" signal. + Fix document signal callbacks to use document pointers.
August 8, 2008 (ntrel) Fix to work with Geany API v86.
Modified: trunk/geanylua/glspi_init.c =================================================================== --- trunk/geanylua/glspi_init.c 2008-09-11 15:34:47 UTC (rev 173) +++ trunk/geanylua/glspi_init.c 2008-09-11 15:40:45 UTC (rev 174) @@ -197,16 +197,18 @@ extern void glspi_set_sci_cmd_hash(gboolean create); extern void glspi_set_key_cmd_hash(gboolean create);
-static void on_doc_new(GObject *obj, gint idx, gpointer user_data) +static void on_doc_new(GObject *obj, GeanyDocument *doc, gpointer user_data) { + gint idx = doc->index; if (g_file_test(local_data.on_created_script,G_FILE_TEST_IS_REGULAR)) { glspi_run_script(local_data.on_created_script,idx+1, NULL, SD); } }
-static void on_doc_save(GObject *obj, gint idx, gpointer user_data) +static void on_doc_save(GObject *obj, GeanyDocument *doc, gpointer user_data) { + gint idx = doc->index; if (g_file_test(local_data.on_saved_script,G_FILE_TEST_IS_REGULAR)) { glspi_run_script(local_data.on_saved_script,idx+1, NULL, SD); } @@ -214,8 +216,9 @@
-static void on_doc_open(GObject *obj, gint idx, gpointer user_data) +static void on_doc_open(GObject *obj, GeanyDocument *doc, gpointer user_data) { + gint idx = doc->index; if (g_file_test(local_data.on_opened_script,G_FILE_TEST_IS_REGULAR)) { glspi_run_script(local_data.on_opened_script,idx+1, NULL, SD); } @@ -223,8 +226,9 @@
-static void on_doc_activate(GObject *obj, gint idx, gpointer user_data) +static void on_doc_activate(GObject *obj, GeanyDocument *doc, gpointer user_data) { + gint idx = doc->index; if (g_file_test(local_data.on_activated_script,G_FILE_TEST_IS_REGULAR)) { glspi_run_script(local_data.on_activated_script,idx+1, NULL, SD); }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org