Revision: 5054
http://geany.svn.sourceforge.net/geany/?rev=5054&view=rev
Author: frlan
Date: 2010-06-20 15:03:30 +0000 (Sun, 20 Jun 2010)
Log Message:
-----------
Change of description of tm_get_real_path(). Patch by Dimitar Zhekov. Thanks.
Modified Paths:
--------------
trunk/ChangeLog
trunk/tagmanager/include/tm_work_object.h
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-06-18 17:15:28 UTC (rev 5053)
+++ trunk/ChangeLog 2010-06-20 15:03:30 UTC (rev 5054)
@@ -1,3 +1,10 @@
+2010-06-20 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
+
+ * tagmanager/tm_work_object.c:
+ Change of description of tm_get_real_path(). Patch by Dimitar Zhekov.
+ Thanks.
+
+
2010-06-18 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/ui_utils.h, src/dialogs.c, src/plugindata.h, src/search.c,
Modified: trunk/tagmanager/include/tm_work_object.h
===================================================================
--- trunk/tagmanager/include/tm_work_object.h 2010-06-18 17:15:28 UTC (rev 5053)
+++ trunk/tagmanager/include/tm_work_object.h 2010-06-20 15:03:30 UTC (rev 5054)
@@ -79,10 +79,9 @@
/*!
Given a file name, returns a newly allocated string containing the realpath()
- of the file. However, unlike realpath, a reasonable guess is returned even if
- the file does not exist, which may often be the case
+ of the file.
\param file_name The original file_name
- \return A newly allocated string containing the real path to the file
+ \return A newly allocated string containing the real path to the file. NULL if none is available.
*/
gchar *tm_get_real_path(const gchar *file_name);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 5052
http://geany.svn.sourceforge.net/geany/?rev=5052&view=rev
Author: ntrel
Date: 2010-06-18 17:03:35 +0000 (Fri, 18 Jun 2010)
Log Message:
-----------
Allow Find in Files when no items are selected.
Modified Paths:
--------------
trunk/ChangeLog
trunk/plugins/filebrowser.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-06-18 15:04:07 UTC (rev 5051)
+++ trunk/ChangeLog 2010-06-18 17:03:35 UTC (rev 5052)
@@ -9,6 +9,8 @@
Fix not loading plugins built against a newer API when Geany doesn't
provide the required version given in PLUGIN_VERSION_CHECK().
Improve documentation for PLUGIN_VERSION_CHECK().
+ * plugins/filebrowser.c:
+ Allow Find in Files when no items are selected.
2010-06-17 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/plugins/filebrowser.c
===================================================================
--- trunk/plugins/filebrowser.c 2010-06-18 15:04:07 UTC (rev 5051)
+++ trunk/plugins/filebrowser.c 2010-06-18 17:03:35 UTC (rev 5052)
@@ -544,7 +544,9 @@
gboolean is_dir = FALSE;
treesel = gtk_tree_view_get_selection(GTK_TREE_VIEW(file_view));
- if (! check_single_selection(treesel))
+ /* allow 0 or 1 selections */
+ if (gtk_tree_selection_count_selected_rows(treesel) > 0 &&
+ ! check_single_selection(treesel))
return;
list = gtk_tree_selection_get_selected_rows(treesel, &model);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 5051
http://geany.svn.sourceforge.net/geany/?rev=5051&view=rev
Author: ntrel
Date: 2010-06-18 15:04:07 +0000 (Fri, 18 Jun 2010)
Log Message:
-----------
Fix not loading plugins built against a newer API when Geany doesn't
provide the required version given in PLUGIN_VERSION_CHECK().
Improve documentation for PLUGIN_VERSION_CHECK().
Modified Paths:
--------------
trunk/ChangeLog
trunk/doc/plugins.dox
trunk/src/plugindata.h
trunk/src/plugins.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-06-18 14:20:10 UTC (rev 5050)
+++ trunk/ChangeLog 2010-06-18 15:04:07 UTC (rev 5051)
@@ -5,6 +5,10 @@
Add ui_combo_box_add_to_history() to API.
* plugins/filebrowser.c:
Add history to path entry.
+ * src/plugindata.h, src/plugins.c, doc/plugins.dox:
+ Fix not loading plugins built against a newer API when Geany doesn't
+ provide the required version given in PLUGIN_VERSION_CHECK().
+ Improve documentation for PLUGIN_VERSION_CHECK().
2010-06-17 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/doc/plugins.dox
===================================================================
--- trunk/doc/plugins.dox 2010-06-18 14:20:10 UTC (rev 5050)
+++ trunk/doc/plugins.dox 2010-06-18 15:04:07 UTC (rev 5051)
@@ -43,7 +43,7 @@
* @section pluginsupport Plugin Support
* - @link howto Plugin HowTo @endlink - get started
* - @link pluginsymbols.c Plugin Symbols @endlink
- * - @link plugindata.h Main Datatypes and Macros @endlink
+ * - @link plugindata.h Plugin Datatypes and Macros @endlink
* - @link signals Plugin Signals @endlink
* - @link pluginutils.h Plugin Utility Functions @endlink
* - @link guidelines Plugin Writing Guidelines @endlink
Modified: trunk/src/plugindata.h
===================================================================
--- trunk/src/plugindata.h 2010-06-18 14:20:10 UTC (rev 5050)
+++ trunk/src/plugindata.h 2010-06-18 15:04:07 UTC (rev 5051)
@@ -59,18 +59,20 @@
GEANY_ABI_VERSION = 66
};
-/** Checks the plugin can be loaded by Geany.
+/** Defines a function to check the plugin is safe to load.
* This performs runtime checks that try to ensure:
* - Geany ABI data types are compatible with this plugin.
- * - Geany sources provide the required API for this plugin. */
+ * - Geany sources provide the required API for this plugin.
+ * @param api_required The minimum API number your plugin requires.
+ * Look at the source for the value of @c GEANY_API_VERSION to use if you
+ * want your plugin to require the current Geany version on your machine.
+ * You should update this value when using any new API features. */
#define PLUGIN_VERSION_CHECK(api_required) \
gint plugin_version_check(gint abi_ver) \
{ \
if (abi_ver != GEANY_ABI_VERSION) \
return -1; \
- if (GEANY_API_VERSION < (api_required)) \
- return (api_required); \
- else return 0; \
+ return (api_required); \
}
Modified: trunk/src/plugins.c
===================================================================
--- trunk/src/plugins.c 2010-06-18 14:20:10 UTC (rev 5050)
+++ trunk/src/plugins.c 2010-06-18 15:04:07 UTC (rev 5051)
@@ -468,7 +468,7 @@
"release of Geany - recompile it.", g_module_name(module));
return FALSE;
}
- if (result > 0)
+ if (result > GEANY_API_VERSION)
{
geany_debug("Plugin \"%s\" requires a newer version of Geany (API >= v%d).",
g_module_name(module), result);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 5050
http://geany.svn.sourceforge.net/geany/?rev=5050&view=rev
Author: ntrel
Date: 2010-06-18 14:20:10 +0000 (Fri, 18 Jun 2010)
Log Message:
-----------
Remove foreach_slist_free() macro - not worth the complexity (list nodes are probably cached anyway).
Modified Paths:
--------------
trunk/plugins/filebrowser.c
Modified: trunk/plugins/filebrowser.c
===================================================================
--- trunk/plugins/filebrowser.c 2010-06-18 12:22:00 UTC (rev 5049)
+++ trunk/plugins/filebrowser.c 2010-06-18 14:20:10 UTC (rev 5050)
@@ -257,10 +257,6 @@
}
-/* Reuses list to free each node, so list must be a variable */
-#define foreach_slist_free(node, list) \
- for (node = list, list = NULL; g_slist_free_1(list), node != NULL; list = node, node = node->next)
-
/* recreate the tree model from current_dir. */
static void refresh(void)
{
@@ -283,14 +279,15 @@
list = utils_get_file_list(current_dir, NULL, NULL);
if (list != NULL)
{
- /* free filenames & nodes as we go through the list */
- foreach_slist_free(node, list)
+ /* free filenames as we go through the list */
+ foreach_slist(node, list)
{
gchar *fname = node->data;
add_item(fname);
g_free(fname);
}
+ g_slist_free(list);
}
gtk_entry_completion_set_model(entry_completion, GTK_TREE_MODEL(file_store));
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.