SF.net SVN: geany-plugins:[1625] trunk/geany-plugins/treebrowser

dimitrov-adrian at users.sourceforge.net dimitrov-adrian at xxxxx
Tue Oct 5 17:12:13 UTC 2010


Revision: 1625
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1625&view=rev
Author:   dimitrov-adrian
Date:     2010-10-05 17:12:13 +0000 (Tue, 05 Oct 2010)

Log Message:
-----------
CRITICAL error fixed when loading the plugin

Modified Paths:
--------------
    trunk/geany-plugins/treebrowser/ChangeLog
    trunk/geany-plugins/treebrowser/src/treebrowser.c

Modified: trunk/geany-plugins/treebrowser/ChangeLog
===================================================================
--- trunk/geany-plugins/treebrowser/ChangeLog	2010-10-05 16:46:28 UTC (rev 1624)
+++ trunk/geany-plugins/treebrowser/ChangeLog	2010-10-05 17:12:13 UTC (rev 1625)
@@ -47,6 +47,7 @@
 		Improved dialog for nonexisting folder
 			(now apear only when toolbars is hidden)
 		Fixed some warnings when compiling
+		Fixed gtk_tree_store_iter_is_valid() warning when loading the plugin
 
 03-10-2010 	Adrian Dimitrov 		<dimitrov.adrian at gmail.com>
 

Modified: trunk/geany-plugins/treebrowser/src/treebrowser.c
===================================================================
--- trunk/geany-plugins/treebrowser/src/treebrowser.c	2010-10-05 16:46:28 UTC (rev 1624)
+++ trunk/geany-plugins/treebrowser/src/treebrowser.c	2010-10-05 17:12:13 UTC (rev 1625)
@@ -286,7 +286,7 @@
 
 	directory = g_strconcat(directory, G_DIR_SEPARATOR_S, NULL);
 
-	has_parent = gtk_tree_store_iter_is_valid(treestore, parent);
+	has_parent = parent ? gtk_tree_store_iter_is_valid(treestore, parent) : FALSE;
 	if (has_parent)
 	{
 		if (parent == &bookmarks_iter)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Plugins-Commits mailing list