Skip to content

Commit

Permalink
use documents_foreach() if foreach_document() is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitar Toshkov Zhekov committed May 22, 2010
1 parent 21566c7 commit b2e8477
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions geanyextrasel/ChangeLog
Expand Up @@ -2,6 +2,7 @@

* src/extrasel.c:
Fixed crash in plugin_cleanup() - patch by Colomban Wendling, thanks.
Use documents_foreach() if foreach_document() is not available.

2010-05-21 Dimitar Zhekov <hamster@mbox.contact.bg>

Expand Down
5 changes: 5 additions & 0 deletions geanyextrasel/src/extrasel.c
Expand Up @@ -293,6 +293,11 @@ void plugin_init(G_GNUC_UNUSED GeanyData *data)
"key-press-event", FALSE, G_CALLBACK(on_key_press_event), NULL);
}

/* for 0.18 compatibility */
#ifndef foreach_document
#define foreach_document documents_foreach
#endif

void plugin_cleanup(void)
{
guint i;
Expand Down

0 comments on commit b2e8477

Please sign in to comment.