SF.net SVN: geany: [2371] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Thu Mar 20 16:18:13 UTC 2008
Revision: 2371
http://geany.svn.sourceforge.net/geany/?rev=2371&view=rev
Author: ntrel
Date: 2008-03-20 09:17:59 -0700 (Thu, 20 Mar 2008)
Log Message:
-----------
Load and save plugin keybindings when toggling plugins in the Plugin
Manager.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/plugins.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-03-20 16:01:29 UTC (rev 2370)
+++ trunk/ChangeLog 2008-03-20 16:17:59 UTC (rev 2371)
@@ -18,6 +18,9 @@
partial colourisation.
* src/symbols.c:
Fix bug with showing macro list items all on one line.
+ * src/plugins.c:
+ Load and save plugin keybindings when toggling plugins in the Plugin
+ Manager.
2008-03-19 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/plugins.c
===================================================================
--- trunk/src/plugins.c 2008-03-20 16:01:29 UTC (rev 2370)
+++ trunk/src/plugins.c 2008-03-20 16:17:59 UTC (rev 2371)
@@ -825,10 +825,18 @@
/* save the filename of the plugin */
file_name = g_strdup(p->filename);
- /* remove old plugin */
+
+ /* unload plugin module */
+ if (!state)
+ keybindings_write_to_file(); /* save shortcuts (only need this group, but it doesn't take long) */
plugin_free(p, GINT_TO_POINTER(PLUGIN_FREE_ALL));
- /* add new one */
+
+ /* reload plugin module and initialize it if item is checked */
p = plugin_new(file_name, state, TRUE);
+ if (state)
+ keybindings_load_keyfile(); /* load shortcuts */
+
+ /* update model */
gtk_list_store_set(pm_widgets.store, &iter,
PLUGIN_COLUMN_CHECK, state,
PLUGIN_COLUMN_PLUGIN, p, -1);
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