Permalink
Browse files

Update to API 159.

  • Loading branch information...
1 parent b45dcd2 commit f4cfc7b5ce404910486ecbce2af9d4991c5c76e4 @ntrel ntrel committed Sep 29, 2009
Showing with 5 additions and 32 deletions.
  1. +3 −0 geanylua/ChangeLog
  2. +1 −31 geanylua/glspi_init.c
  3. +1 −1 geanylua/glspi_ver.h
View
@@ -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.
View
@@ -363,39 +363,9 @@ static void init_menu(gpointer data, gpointer user_data)
-/*
- * 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);
@@ -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"

0 comments on commit f4cfc7b

Please sign in to comment.