summaryrefslogtreecommitdiff
path: root/testsuite/gtk/textbuffer.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix the textbuffer testMatthias Clasen2017-12-261-0/+21
| | | | | The test was assuming that gtk_text_buffer_paste_clipboard is synchronous, which is no longer the case.
* textview: Redo clipboard handlingBenjamin Otte2017-12-031-2/+2
| | | | | | Instead of using GtkClipboard and handling everything ourselves, we now put GtkTextBuffer into the GdkClipboard and register (de)serializers for text/plain.
* textview: Replace pixbufs by texturesMatthias Clasen2017-11-291-8/+11
| | | | | | | | This affects a few apis, such as gtk_text_iter_get_pixbuf, gtk_text_buffer_insert_pixbuf and GtkTextBuffer::insert-pixbuf, which have all been replaced by texture equivalents. Update all callers.
* testsuite: Strip newlines from g_warning and g_errorMatthias Clasen2016-02-281-9/+9
| | | | g_logv adds one for us already.
* Don't use gtk_text_iter_begins_tag() (deprecated)Sébastien Wilmet2015-12-081-2/+2
| | | | | | Use gtk_text_iter_starts_tag() instead. https://bugzilla.gnome.org/show_bug.cgi?id=759092
* textbuffer: nicer get_iter functions, without return valuesSébastien Wilmet2015-11-121-0/+123
| | | | | | | | | | | | | Avoid crashes when passing an invalid location to a gtk_text_buffer_get_iter_at_*() function. A first attempt added boolean return values to know if @iter has been set to the exact location, but it breaks Python and JS bindings because the out parameter is already a return value in those languages. Unit tests are added. https://bugzilla.gnome.org/show_bug.cgi?id=735341
* Revert "textbuffer: nicer get_iter functions"Matthias Clasen2015-11-121-123/+0
| | | | | | | | This reverts commit a9a1c00cc9255ee9a7f73695f69abe172cde7bfa. Unfortunately, adding the boolean return broke both the python and javascript bindings, since they now return a tuple consisting of the boolean and the out argument.
* Don't use g_slist_next in the testsuiteMatthias Clasen2015-10-201-5/+5
| | | | We generally use ->next directly.
* textbuffer: nicer get_iter functionsSébastien Wilmet2015-10-161-0/+123
| | | | | | | | | | | | Avoid crashes when passing an invalid location to a gtk_text_buffer_get_iter_at_*() function. A boolean is returned to know if @iter has been set to the exact location. Unit tests are added. https://bugzilla.gnome.org/show_bug.cgi?id=735341
* textbuffer: unit tests for the empty last lineSébastien Wilmet2014-08-211-0/+22
| | | | | | | | | | | For functions using _gtk_text_buffer_get_line_log_attrs(): - gtk_text_buffer_backspace() - some gtk_text_iter functions (word/sentence/cursor boundaries) As the FIXME comments show, there is a bug with gtk_text_iter_is_cursor_position() for an empty last line. https://bugzilla.gnome.org/show_bug.cgi?id=156164
* tests textbuffer: don't use GdkColor (deprecated)Sébastien Wilmet2014-08-201-21/+25
|
* textbuffer: add unit tests for the clipboardSébastien Wilmet2013-09-161-1/+91
| | | | | | | | | | | It tests gtk_text_buffer_paste_clipboard(), gtk_text_buffer_copy_clipboard() and gtk_text_buffer_cut_clipboard() in various situations, including when GtkTextTags are applied to the selection. The last test didn't pass. https://bugzilla.gnome.org/show_bug.cgi?id=339539
* build: Move gtk/tests to testsuite/gtkBenjamin Otte2013-05-151-0/+1341