Revision: 1508 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1508&view=re... Author: eht16 Date: 2010-08-15 17:46:11 +0000 (Sun, 15 Aug 2010)
Log Message: ----------- Fix line scrolling when jumping to bookmarks (part of #3043534).
Modified Paths: -------------- trunk/geany-plugins/addons/ChangeLog trunk/geany-plugins/addons/src/addons.c trunk/geany-plugins/addons/src/ao_bookmarklist.c
Modified: trunk/geany-plugins/addons/ChangeLog =================================================================== --- trunk/geany-plugins/addons/ChangeLog 2010-08-15 13:48:43 UTC (rev 1507) +++ trunk/geany-plugins/addons/ChangeLog 2010-08-15 17:46:11 UTC (rev 1508) @@ -1,3 +1,9 @@ +2010-08-15 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> + + * src/addons.c, src/ao_bookmarklist.c: + Fix line scrolling when jumping to bookmarks (part of #3043534). + + 2010-06-27 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* src/ao_xmltagging.c:
Modified: trunk/geany-plugins/addons/src/addons.c =================================================================== --- trunk/geany-plugins/addons/src/addons.c 2010-08-15 13:48:43 UTC (rev 1507) +++ trunk/geany-plugins/addons/src/addons.c 2010-08-15 17:46:11 UTC (rev 1508) @@ -40,7 +40,7 @@ GeanyFunctions *geany_functions;
-PLUGIN_VERSION_CHECK(188) +PLUGIN_VERSION_CHECK(194) PLUGIN_SET_TRANSLATABLE_INFO( LOCALEDIR, GETTEXT_PACKAGE,
Modified: trunk/geany-plugins/addons/src/ao_bookmarklist.c =================================================================== --- trunk/geany-plugins/addons/src/ao_bookmarklist.c 2010-08-15 13:48:43 UTC (rev 1507) +++ trunk/geany-plugins/addons/src/ao_bookmarklist.c 2010-08-15 17:46:11 UTC (rev 1508) @@ -201,9 +201,12 @@ GeanyDocument *doc = document_get_current(); if (DOC_VALID(doc)) { + gint pos; + gtk_tree_model_get(model, &iter, BMLIST_COL_LINE, &line, -1); - sci_goto_line(doc->editor->sci, line - 1, TRUE); + pos = sci_get_position_from_line(doc->editor->sci, line - 1);
+ editor_goto_pos(doc->editor, pos, FALSE); gtk_widget_grab_focus(GTK_WIDGET(doc->editor->sci)); } }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.