SF.net SVN: geany:[4632] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Mon Feb 1 17:45:18 UTC 2010
Revision: 4632
http://geany.svn.sourceforge.net/geany/?rev=4632&view=rev
Author: ntrel
Date: 2010-02-01 17:45:18 +0000 (Mon, 01 Feb 2010)
Log Message:
-----------
Fix GLib warning when toggling 'no plugins available' item.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/plugins.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-01-31 22:08:58 UTC (rev 4631)
+++ trunk/ChangeLog 2010-02-01 17:45:18 UTC (rev 4632)
@@ -1,3 +1,9 @@
+2010-02-01 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
+
+ * src/plugins.c:
+ Fix GLib warning when toggling 'no plugins available' item.
+
+
2010-01-31 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* icons/Makefile.am:
Modified: trunk/src/plugins.c
===================================================================
--- trunk/src/plugins.c 2010-01-31 22:08:58 UTC (rev 4631)
+++ trunk/src/plugins.c 2010-02-01 17:45:18 UTC (rev 4632)
@@ -1071,7 +1071,11 @@
gtk_tree_model_get(GTK_TREE_MODEL(pm_widgets.store), &iter,
PLUGIN_COLUMN_CHECK, &old_state, PLUGIN_COLUMN_PLUGIN, &p, -1);
- g_return_if_fail(p != NULL);
+
+ /* no plugins item */
+ if (p == NULL)
+ return;
+
state = ! old_state; /* toggle the state */
/* save the filename of the plugin */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list