Revision: 1376 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1376&view=re... Author: sheckley Date: 2010-05-22 07:12:02 +0000 (Sat, 22 May 2010)
Log Message: ----------- fixed crash in plugin_cleanup()
Modified Paths: -------------- trunk/geany-plugins/geanyextrasel/ChangeLog trunk/geany-plugins/geanyextrasel/src/extrasel.c
Modified: trunk/geany-plugins/geanyextrasel/ChangeLog =================================================================== --- trunk/geany-plugins/geanyextrasel/ChangeLog 2010-05-21 21:23:38 UTC (rev 1375) +++ trunk/geany-plugins/geanyextrasel/ChangeLog 2010-05-22 07:12:02 UTC (rev 1376) @@ -1,3 +1,8 @@ +2010-05-22 Dimitar Zhekov hamster@mbox.contact.bg + + * src/extrasel.c: + Fixed crash in plugin_cleanup() - patch by Colomban Wendling, thanks. + 2010-05-21 Dimitar Zhekov hamster@mbox.contact.bg
* src/extrasel.c:
Modified: trunk/geany-plugins/geanyextrasel/src/extrasel.c =================================================================== --- trunk/geany-plugins/geanyextrasel/src/extrasel.c 2010-05-21 21:23:38 UTC (rev 1375) +++ trunk/geany-plugins/geanyextrasel/src/extrasel.c 2010-05-22 07:12:02 UTC (rev 1376) @@ -289,17 +289,16 @@
gtk_widget_show_all(main_menu_item);
- // testing plugin_signal_connect(geany_plugin, G_OBJECT(geany->main_widgets->window), "key-press-event", FALSE, G_CALLBACK(on_key_press_event), NULL); }
void plugin_cleanup(void) { - gint i, max = gtk_notebook_get_n_pages(GTK_NOTEBOOK(geany->main_widgets->notebook)); + guint i;
column_mode = FALSE; - for (i = 0; i < max; i++) - assign_column_keys(document_get_from_page(i)->editor->sci); + foreach_document (i) + assign_column_keys(documents[i]->editor->sci); gtk_widget_destroy(main_menu_item); }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.