Revision: 961 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=961&view=rev Author: ntrel Date: 2009-09-29 14:09:11 +0000 (Tue, 29 Sep 2009)
Log Message: ----------- Update to API 159.
Modified Paths: -------------- trunk/geany-plugins/geanylua/ChangeLog trunk/geany-plugins/geanylua/glspi_init.c trunk/geany-plugins/geanylua/glspi_ver.h
Modified: trunk/geany-plugins/geanylua/ChangeLog =================================================================== --- trunk/geany-plugins/geanylua/ChangeLog 2009-09-28 20:32:36 UTC (rev 960) +++ trunk/geany-plugins/geanylua/ChangeLog 2009-09-29 14:09:11 UTC (rev 961) @@ -1,3 +1,6 @@ +September 29, 2009 (ntrel) + Update to API 159. + September 24, 2009 (ntrel) Use new plugin_configure_single() instead of using plugin_configure() wrongly.
Modified: trunk/geany-plugins/geanylua/glspi_init.c =================================================================== --- trunk/geany-plugins/geanylua/glspi_init.c 2009-09-28 20:32:36 UTC (rev 960) +++ trunk/geany-plugins/geanylua/glspi_init.c 2009-09-29 14:09:11 UTC (rev 961) @@ -363,39 +363,9 @@
-/* - * Borrowed from Geany's utils_get_file_list() but modified because I want the - * list to store the full path to each file... - * - * Gets a sorted list of files in the specified directory. - * The list and the data in the list should be freed after use. - * Returns: The list or NULL if no files found. - */ -static GSList *get_file_list(const gchar *path) -{ - GSList *list = NULL; - GDir *dir; - GError *err = NULL; - g_return_val_if_fail(path && *path, NULL); - dir = g_dir_open(path, 0, &err); - if (dir) { - while (1) { - const gchar *filename = g_dir_read_name(dir); - if (!filename) { break; } - list = g_slist_insert_sorted( - list, g_strconcat(path, DIR_SEP, filename, NULL), (GCompareFunc) strcasecmp); - } - g_dir_close(dir); - } - if (err) {g_error_free(err);} - return list; -} - - - static GtkWidget* new_menu(GtkWidget *parent, gchar* script_dir, gchar*title) { - GSList *script_names=get_file_list(script_dir); + GSList *script_names=utils_get_file_list_full(script_dir, TRUE, TRUE, NULL); if (script_names) { GtkWidget *menu = gtk_menu_new(); GtkWidget *menu_item = gtk_menu_item_new_with_mnemonic(title);
Modified: trunk/geany-plugins/geanylua/glspi_ver.h =================================================================== --- trunk/geany-plugins/geanylua/glspi_ver.h 2009-09-28 20:32:36 UTC (rev 960) +++ trunk/geany-plugins/geanylua/glspi_ver.h 2009-09-29 14:09:11 UTC (rev 961) @@ -12,7 +12,7 @@
#define PLUGIN_AUTHOR "Jeff Pohlmeyer"
-#define MY_GEANY_API_VER 153 +#define MY_GEANY_API_VER 159
#define LUA_MODULE_NAME "geany"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org