SF.net SVN: geany:[5651] trunk

colombanw at users.sourceforge.net colombanw at xxxxx
Tue Mar 29 23:20:29 UTC 2011


Revision: 5651
          http://geany.svn.sourceforge.net/geany/?rev=5651&view=rev
Author:   colombanw
Date:     2011-03-29 23:20:29 +0000 (Tue, 29 Mar 2011)

Log Message:
-----------
Use new plugin_idle_add(), preventing an unlikely crash

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/plugins/splitwindow.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2011-03-29 23:20:14 UTC (rev 5650)
+++ trunk/ChangeLog	2011-03-29 23:20:29 UTC (rev 5651)
@@ -6,6 +6,8 @@
    plugin_timeout_add_seconds() to the plugin API. These are
    convenience wrappers to ensure the added timeouts are properly
    removed when unloading the plugin, preventing possible crashes.
+ * plugins/splitwindow.c:
+   Use new plugin_idle_add(), preventing an unlikely crash.
 
 
 2011-03-29  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>

Modified: trunk/plugins/splitwindow.c
===================================================================
--- trunk/plugins/splitwindow.c	2011-03-29 23:20:14 UTC (rev 5650)
+++ trunk/plugins/splitwindow.c	2011-03-29 23:20:29 UTC (rev 5651)
@@ -461,7 +461,7 @@
 	if (doc->editor == edit_window.editor)
 	{
 		/* select current or unsplit in IDLE time, so the tab has changed */
-		g_idle_add(do_select_current, NULL);
+		plugin_idle_add(geany_plugin, do_select_current, NULL);
 	}
 }
 


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