Revision: 1098 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1098&view=re... Author: eht16 Date: 2010-01-01 22:24:34 +0000 (Fri, 01 Jan 2010)
Log Message: ----------- Fix warning if the bookmark list is disabled.
Modified Paths: -------------- trunk/geany-plugins/addons/ChangeLog trunk/geany-plugins/addons/src/ao_bookmarklist.c
Modified: trunk/geany-plugins/addons/ChangeLog =================================================================== --- trunk/geany-plugins/addons/ChangeLog 2010-01-01 22:22:39 UTC (rev 1097) +++ trunk/geany-plugins/addons/ChangeLog 2010-01-01 22:24:34 UTC (rev 1098) @@ -2,6 +2,8 @@
* src/*.c, src/*.h: Update copyright information. + * src/ao_bookmarklist.c: + Fix warning if the bookmark list is disabled.
2009-12-08 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/geany-plugins/addons/src/ao_bookmarklist.c =================================================================== --- trunk/geany-plugins/addons/src/ao_bookmarklist.c 2010-01-01 22:22:39 UTC (rev 1097) +++ trunk/geany-plugins/addons/src/ao_bookmarklist.c 2010-01-01 22:24:34 UTC (rev 1098) @@ -401,11 +401,14 @@ ScintillaObject *sci = doc->editor->sci; AoBookmarkListPrivate *priv = AO_BOOKMARK_LIST_GET_PRIVATE(bm);
- gtk_list_store_clear(priv->store); - while ((line_nr = scintilla_send_message(sci, SCI_MARKERNEXT, line_nr, mask)) != -1) + if (priv->enable_bookmarklist) { - add_line(bm, sci, line_nr); - line_nr++; + gtk_list_store_clear(priv->store); + while ((line_nr = scintilla_send_message(sci, SCI_MARKERNEXT, line_nr, mask)) != -1) + { + add_line(bm, sci, line_nr); + line_nr++; + } } }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.