Revision: 5702 http://geany.svn.sourceforge.net/geany/?rev=5702&view=rev Author: eht16 Date: 2011-04-10 12:08:24 +0000 (Sun, 10 Apr 2011)
Log Message: ----------- Ignore scrolling events in on_update_ui().
Modified Paths: -------------- trunk/ChangeLog trunk/src/editor.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2011-04-08 16:49:38 UTC (rev 5701) +++ trunk/ChangeLog 2011-04-10 12:08:24 UTC (rev 5702) @@ -1,3 +1,9 @@ +2011-04-10 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> + + * src/editor.c: + Ignore scrolling events in on_update_ui(). + + 2011-04-08 Colomban Wendling <colomban(at)geany(dot)org>
* scintilla/lexers/LexCPP.cxx:
Modified: trunk/src/editor.c =================================================================== --- trunk/src/editor.c 2011-04-08 16:49:38 UTC (rev 5701) +++ trunk/src/editor.c 2011-04-10 12:08:24 UTC (rev 5702) @@ -515,6 +515,11 @@ ScintillaObject *sci = editor->sci; gint pos = sci_get_current_position(sci);
+ /* since Scintilla 2.24, SCN_UPDATEUI is also sent on scrolling though we don't need to handle + * this and so ignore every SCN_UPDATEUI events except for content and selection changes */ + if (! (nt->updated & SC_UPDATE_CONTENT) && ! (nt->updated & SC_UPDATE_SELECTION)) + return; + /* undo / redo menu update */ ui_update_popup_reundo_items(editor->document);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.