commit 0947a5c9355398d412d6ba1d27e193621fc6ad4b Author: Sébastien Wilmet Date: 2013-02-04 Release 3.7.3 M NEWS commit 7b73e25731d75e9b211007334b27ee8621f5a28f Author: Sébastien Wilmet Date: 2013-02-04 Distribute tests/styles/classic.xml Fix make distcheck. M tests/Makefile.am commit 19c292f1ec8dfe78098e1f8f51f3a1081c1a5b63 Author: Sébastien Wilmet Date: 2013-02-01 Completion: do not emit the "hide" signal in show() It can be useful for an application to connect a callback on the "hide" signal to reset some properties that were altered just before showing the completion. But it can be strange to see this callback called during the display of the completion window. M gtksourceview/gtksourcecompletion.c commit 08ddcf80217408c74b5ffbfd011746b6aa0f3183 Author: Chao-Hsiung Liao Date: 2013-02-04 Updated Traditional Chinese translation(Hong Kong and Taiwan) M po/zh_HK.po M po/zh_TW.po commit 767a4c9063ee5ccf5d0b79b9df65a480f079c832 Author: Piotr Drąg Date: 2013-02-03 Updated Polish translation M po/pl.po commit a2ccd0650019881c6469312eeca9387f5820273d Author: Yaron Shahrabani Date: 2013-02-02 Updated Hebrew translation. M po/he.po commit b8122db48994464c37c057884522b4ba1b2fcb28 Author: Matej Urbančič Date: 2013-01-27 Updated Slovenian translation M po/sl.po commit af57b999da2c0b05738c4a9abf7ea8af414ce182 Author: Sébastien Wilmet Date: 2013-01-27 Post-release version bump M README M configure.ac commit 8a8aa2b0fd1c0f4e1c50d8e2dc0a5e82d99ed33c Author: Sébastien Wilmet Date: 2013-01-26 Don't use gtk_source_completion_info_{get,set}_widget() It's less convenient to use the GTK+ functions, but it's better to have a smaller API. M gtksourceview/gtksourcecompletion.c commit 611ecb0a1d359434b75adb8d23c976c60bd56960 Author: Sébastien Wilmet Date: 2013-01-26 Deprecate gtk_source_completion_info_{get,set}_widget() If one day the CompletionInfo becomes more complex (like it was in the past, with a ScrolledWindow and a Viewport), it will still be possible to override gtk_container_add() and gtk_bin_get_child(). M gtksourceview/gtksourcecompletioninfo.c M gtksourceview/gtksourcecompletioninfo.h commit f0542717b3491468b85ef5edd76c7ce496199e3e Author: Sébastien Wilmet Date: 2013-01-26 CompletionInfo: use gtk_bin_get_child() Instead of storing the widget in the private structure, we can simply use gtk_bin_get_child(). M gtksourceview/gtksourcecompletioninfo.c commit bbd642854ff8e974a63cdeabb7da0fb74063b61f Author: Sébastien Wilmet Date: 2013-01-26 Completion: fix the documentation for the page sizes I thought that the provider-page-size property was not used. But one can emit the "move-page" signal with @step equal to GTK_SCROLL_PAGES. M gtksourceview/gtksourcecompletion.c commit 07c4dd62c1e3cbb95fb92a94d13b0e5a3c0849bf Author: Sébastien Wilmet Date: 2013-01-26 Deprecate gtk_source_completion_move_window() The window is already moved automatically with gtk_source_completion_provider_get_start_iter(). When generating the documentation, there is a warning: warning: gtk_source_completion_move_window is deprecated in the inline comments, but no deprecation guards were found around the declaration. (See the --deprecated-guards option for gtkdoc-scan.) But it's normal, it's a bug in gtk-doc (bug #624001): https://bugzilla.gnome.org/show_bug.cgi?id=624001 M gtksourceview/gtksourcecompletion.c M gtksourceview/gtksourcecompletion.h commit 6043dad88f0b4ff496162a7954baeee7f77224b9 Author: Aurimas Černius Date: 2013-01-27 Updated Lithuanian translation M po/lt.po commit 3bac7395baadd886ece8376112d1249ba9b8a1b8 Author: Paolo Borelli Date: 2013-01-27 Rework GtkSourceMark binary search Add SourceMark unit test that was failing with the old implementation and rework the implementation to properly deal with multiple source marks at the same iter. M gtksourceview/gtksourcebuffer.c M tests/Makefile.am A tests/test-mark.c commit ca0dcf67bfe3028404b836b98c04f68aa7105aae Author: Paolo Borelli Date: 2013-01-27 Small optimization for a common case (no marks) This function is called at every redraw, so it is worth catching this common case M gtksourceview/gtksourcebuffer.c commit d5a1f07dc5dabe5938e63667ad73ff7a15a8ce42 Author: Sébastien Wilmet Date: 2013-01-26 Doc: minor fixes in MarkAttributes M gtksourceview/gtksourcemarkattributes.c commit 9853dca92786bbcda392264e9b11fa08e8d2e091 Author: Sébastien Wilmet Date: 2013-01-26 Doc: #function -> function() M gtksourceview/gtksourcecompletion.c M gtksourceview/gtksourcecompletionproposal.c M gtksourceview/gtksourcegutterrenderer.c M gtksourceview/gtksourcemark.c M gtksourceview/gtksourceundomanager.c commit b304ec9682cfab3a617c13a60a525718dc9917ef Author: Sébastien Wilmet Date: 2013-01-22 test-completion-model: test the "row-changed" signal M tests/test-completion-model.c commit 26ef164c3074541832c783379457853e6d43ae65 Author: Sébastien Wilmet Date: 2013-01-22 CompletionModel: remove providers-changed signal It was used only for updating a label, but updating it at the end of the population is enough. M gtksourceview/gtksourcecompletion.c M gtksourceview/gtksourcecompletionmodel.c commit a1383013a099b3fae73c116cfa0e7231cd0513df Author: Sébastien Wilmet Date: 2013-01-22 Completion: select first proposal on "move-page" When we select another provider with Ctrl+left/right, the first proposal is selected if needed. M gtksourceview/gtksourcecompletion.c commit 03c3708343e77c21f023f4e9ab11878d3e49f8c1 Author: Sébastien Wilmet Date: 2013-01-22 Completion: remove on_row_{inserted,deleted}_cb() We can call check_first_selected() at other places, if needed. M gtksourceview/gtksourcecompletion.c commit 999f0d22b5dd556a843d289146d8dfe59ded4a90 Author: Sébastien Wilmet Date: 2013-01-22 Completion: check if the TreeView contains a model M gtksourceview/gtksourcecompletion.c commit e8d65f32971d2e2f92f43b2819a8d7cdfd9343dc Author: Sébastien Wilmet Date: 2013-01-22 Completion: select first proposal when population is done Indeed, the code was not correct. M gtksourceview/gtksourcecompletion.c commit c2e4ef56a911430d61519d34123f95f4e104772b Author: Sébastien Wilmet Date: 2013-01-22 Completion: simplify check_first_selected() No need to reset 'piter' to the first iter, since we already have the 'first' iter. And priv->select_first is already TRUE, else we wouldn't have selected the first selectable iter. M gtksourceview/gtksourcecompletion.c commit 1d930debe735c0b8e449bb7d0fe57a0a0d520310 Author: Sébastien Wilmet Date: 2013-01-22 Completion: simplify on_row_inserted_cb() Now we are sure that the completion window is visible when on_row_inserted_cb() is called. M gtksourceview/gtksourcecompletion.c commit b0f4df9aaa59cc81842db1d2193ac869ff291389 Author: Sébastien Wilmet Date: 2013-01-21 Completion: replace_model() function M gtksourceview/gtksourcecompletion.c commit 9c2ee8c7658712ab27d1c316fa0f794a81c7d590 Author: Sébastien Wilmet Date: 2013-01-21 Completion: remove model_{begin,end}_populate() Remove also the tests for multiple populations in the same model. It is not used anymore. M gtksourceview/gtksourcecompletion.c M gtksourceview/gtksourcecompletionmodel.c M gtksourceview/gtksourcecompletionmodel.h M tests/test-completion-model.c commit 5872818c600b50a3cec215b2476b9d7ee9286746 Author: Sébastien Wilmet Date: 2013-01-21 Completion: remove model_cancel() M gtksourceview/gtksourcecompletion.c M gtksourceview/gtksourcecompletionmodel.c M gtksourceview/gtksourcecompletionmodel.h M tests/test-completion-model.c commit ee614a50890ea36267faecb1efe20d54a941df1b Author: Sébastien Wilmet Date: 2013-01-21 Completion: remove model_clear() We create a new CompletionModel for each population, so clearing the model is no longer useful. M gtksourceview/gtksourcecompletion.c M gtksourceview/gtksourcecompletionmodel.c M gtksourceview/gtksourcecompletionmodel.h M tests/test-completion-model.c commit aee2e81f6c96f67fc2bec42dbab73c3b60b5248c Author: Sébastien Wilmet Date: 2013-01-20 Completion: use a new model for each population At the beginning of a population, we remove the model from the TreeView, and we destroy it. A new model is created, which is set to the TreeView only when the population is finished. When the population is finished, we must also show the completion window, which is normally done in on_row_inserted_cb(), but the "row-inserted" signals are not emitted. M gtksourceview/gtksourcecompletion.c commit e745ce0e65a177b779ab1668721c7fcb12abcb1c Author: Sébastien Wilmet Date: 2013-01-20 Completion: remove begin/end delete signals It was for performances reasons with the previous model implementation. M gtksourceview/gtksourcecompletion.c M gtksourceview/gtksourcecompletionmodel.c M gtksourceview/gtksourcecompletionmodel.h commit 193f23a21d091201b627724b542fd04a8604a8c5 Author: Sébastien Wilmet Date: 2013-01-20 test-completion-model: remove the commented tests All tests are now OK. M tests/test-completion-model.c commit 2f380e91ba63d3446b1c4f6a2f261db91cb6c5f8 Author: Sébastien Wilmet Date: 2013-01-14 Free return value of gtk_source_completion_model_get_providers() In select_provider(), the variable 'providers' was declared a second time, that's why it's renamed to 'visible_providers'. M gtksourceview/gtksourcecompletion.c M tests/test-completion-model.c commit da43b6622eb26034333e2bd39b6b332ee5ff1152 Author: Sébastien Wilmet Date: 2013-01-14 CompletionModel: new implementation The previous implementation supported several populations of proposals. Between two populations, the model kept the common proposals, to avoid emitting useless "row-deleted" and "row-inserted" signals. But there is a simpler solution. During a population, we remove the model from the GtkTreeView. So the "row-inserted" and "row-deleted" signals are not needed. Once the population is finished, we set the model to the GtkTreeView, so the rows are correctly displayed. With the new implementation, a model is used for only one population. When a new population occurs, the old model is destroyed, and we create a new one. It simplifies a lot the code. And it's also more efficient, since we avoid completely all the "row-inserted" and "row-deleted" signals during a population. I've tested with five providers containing each 10000 proposals. With the previous implementation, the completion window takes maybe 30 seconds to appear, while with the new implementation, it appears in approximately one second! There is still the problem when we change the visible providers. In this case the "row-deleted" and "row-inserted" signals are emitted. But it would not be difficult to use the same trick as for the populations. M gtksourceview/gtksourcecompletionmodel.c commit 5f3d12565c83df1d628d7b607fa09767d53ea72d Author: Sébastien Wilmet Date: 2013-01-14 CompletionModel: separate functions into sections M gtksourceview/gtksourcecompletionmodel.c commit 15311f6640a67914b8a43510b4ca6d887613b2f8 Author: Sébastien Wilmet Date: 2013-01-14 CompletionModel: wipe out the current implementation Keep the maximum for the new implementation. There are also a few minor changes. M gtksourceview/gtksourcecompletionmodel.c commit 94267bde75d65668c19675eeeb2476ad915827b8 Author: Ignacio Casal Quinteiro Date: 2013-01-26 Add current line, cursor and draw spaces colors in tango style M data/styles/tango.xml commit dabdb98136d21191149579b8c51fc0bf743eeaa6 Author: Ignacio Casal Quinteiro Date: 2013-01-26 Tweak kate style to make it look more like kate's one M data/styles/kate.xml commit c7391cb4f6649cdd872f8fbfe8ca6cd912cb42e0 Author: Ignacio Casal Quinteiro Date: 2013-01-25 Add missing colors to classic style. Do not rely on gtk+ for colors. Adwaita has changed the colors and do not fit anymore for our theme. M data/styles/classic.xml commit ccc27f7b689228fad095e3e5b4822c538da35029 Author: Paolo Borelli Date: 2013-01-26 Fix the order style schemes are loaded. Since we load in the order of the specified search path, if a scheme is found twice, the first should win. Also add a unit test. M gtksourceview/gtksourcestyleschememanager.c M tests/Makefile.am A tests/styles/classic.xml A tests/test-styleschememanager.c commit 52d9a19a62cdb54b09fa9464b2d91af8a65f3a8f Author: Gheyret Kenji Date: 2013-01-26 Updated Uyghur translation Signed-off-by: Gheyret Kenji M po/ug.po commit bcd58f3d42c97631f8332cd58ac8c26e84cd1469 Author: Gheyret Kenji Date: 2013-01-26 Updated Uyghur translation Signed-off-by: Gheyret Kenji M po/ug.po commit 8e6c898d2ce8dab7a5c075d08311b7f05398a3a2 Author: Milo Casagrande Date: 2013-01-24 [l10n] Updated Italian translation. M po/it.po commit 5fbf353c52b9f551e67c190a22ca78a5c13f6c30 Author: Carl-Anton Ingmarsson Date: 2013-01-15 Completion: cleanup cancellation and updating of the current context Remove the context parameter from cancel_completion() and change it so that it only unrefs and sets the active context to NULL. update_completion() now always expect that it owns a ref on the passed in context. This means that cancel_completion() always can unref the previous active context even if the new context passed in is the same. This should fix a potential problem where the active context wasn't updated properly leading to the context being leaked and the active context being NULL even though it shouldn't. https://bugzilla.gnome.org/show_bug.cgi?id=691668 M gtksourceview/gtksourcecompletion.c commit b85f80c8d2640eaecf131e71a8b746638e9d9319 Author: Carles Ferrando Date: 2013-01-21 [l10n] Updated Catalan (Valencian) translation M po/ca@valencia.po commit 413c480f7f084fe58cfb333b92d1b66b903f68b1 Author: Gil Forcada Date: 2013-01-21 [l10n] Updated Catalan translation M po/ca.po commit 0656d54420cb9919d0b85ecbbd129e5bff8aad2a Author: Sébastien Wilmet Date: 2013-01-20 Completion: clean header inclusions M gtksourceview/gtksourcecompletion.c commit ebb9e96734cab95714f0b8e9b8ab292038b0ddb5 Author: Yaakov Selkowitz Date: 2013-01-06 Update python tests for Python 3 print was changed from a statement to a function in 3.0, but as simple print calls, this syntax is compatible with both 2.x and 3.x. Signed-off-by: Yaakov Selkowitz https://bugzilla.gnome.org/show_bug.cgi?id=691268 M tests/test-widget.py commit d50c6c4789c077e7b4384c53961c310ef85da74f Author: Мирослав Николић Date: 2013-01-19 Updated Serbian translation M po/sr.po M po/sr@latin.po commit 0f97d9435c266ab9688ed4ae537b9a685b2cb4b4 Author: Ignacio Casal Quinteiro Date: 2013-01-18 Mark as user actions undo and redo M gtksourceview/gtksourceundomanagerdefault.c commit 64c412a1d201df01194f8b0b2f22ef5f9e73f225 Author: Sébastien Wilmet Date: 2012-12-16 CompletionInfo: update the documentation M gtksourceview/gtksourcecompletioninfo.c commit dc25eed1e55747181b4d1798d59d9f540003fc13 Author: Sébastien Wilmet Date: 2012-12-16 CompletionInfo: always a natural size The previous implementation had the public function: set_sizing (int max_width, int max_height, bool shrink_width, bool shrink_height); It has been removed during the port to GTK+ 3. See commit e195094a2a89fe25996f081b584c42675b89216f. However, the sizing of a GtkWindow should be done with GTK+ functions, not by adding API to GtkSourceView. Previously, the info window had by default a fixed size of 300x200, with a scrolled window. It was difficult to change this for having a natural size. Now the natural size is the default, and having a fixed size is not really difficult (it will be documented in a later commit). For more details, read: https://bugzilla.gnome.org/show_bug.cgi?id=679280 M gtksourceview/gtksourcecompletioninfo.c commit 321498375d1ce3b0d234d800d943b81c51932986 Author: Sébastien Wilmet Date: 2013-01-16 Add allow-none annotation to completion_context_add_proposals() To allow an empty list of proposals. M gtksourceview/gtksourcecompletioncontext.c commit 1899148a5f9adf704b4497f873b70647d1cee649 Author: Daniel Mustieles Date: 2013-01-15 Updated Spanish translation M po/es.po