summaryrefslogtreecommitdiff
path: root/gtksourceview
Commit message (Collapse)AuthorAgeFilesLines
* completion: add bug URL in the codeSébastien Wilmet2015-10-021-0/+1
| | | | | So it has more chances to be seen. If the code is moved to another file, for example, the git blame won't work.
* completion: workaround GtkCellRendererText bugChristian Hergert2015-10-021-0/+13
| | | | | | | | | | | If a completion proposal returns markup of "<b>foo</b> <b>foo</b>", the first bold will not be respected in most cases. The font-desc we get from the style usually has PANGO_FONT_MASK_WEIGHT set, even when it is set to normal. Thus, the PangoLayout has two PangoAttr in the PangoAttrList which set weight at the same offset. This can be removed if https://bugzilla.gnome.org/show_bug.cgi?id=755968 gets fixed.
* completion: ensure pixbuf if no image was providedChristian Hergert2015-09-241-0/+9
| | | | | | | | It is common to have a mixture of GtkSourceCompletionProposal where some have pixbuf/gicon/icon-name and some do not. This was causing the rows without provided icons to inherit that of the previously rendered row. This simply unsets the image if we did not find one to set.
* build: better variable names in Makefile.am and more logical orderSébastien Wilmet2015-09-201-45/+45
|
* style-scheme-choosers: do not #include gi18n.hSébastien Wilmet2015-09-202-4/+1
| | | | Include gtksourceview-i18n.h instead.
* map: do not translate propertiesSébastien Wilmet2015-09-201-8/+6
| | | | | Properties are no longer translated in GtkSourceView. That's a waste of time.
* Fix license headers in StyleSchemeChooser filesSébastien Wilmet2015-09-176-35/+34
|
* encoding: use g_slist_find() to simplify the codeSébastien Wilmet2015-09-051-18/+3
|
* Plug a small leak in the style scheme codePaolo Borelli2015-09-051-4/+7
| | | | gtk_style_context_get returns a copy
* Plug a small leak in the encodings listPaolo Borelli2015-09-051-1/+1
|
* language-parser-2: fix commentSébastien Wilmet2015-09-011-3/+3
| | | | The regex is already complicated, but if there are errors in it, …
* sourceview: fix potential divide-by-zero in grid drawingChristian Hergert2015-09-011-1/+2
| | | | | I happened to run into this while manually typing in font-sizing in CSS using the Gtk inspector. Quick, easy fix.
* pixbuf: handle creating pixbufs for HiDPI resolutionsChristian Hergert2015-08-312-5/+30
| | | | | | | | | | | | | | | Under certain HiDPI situations, 1x icons were loaded and rendered with the scale factor applied. As expected, this resulted in blurry icons. Of note, were blurry icons in the GtkSourceGutterRendererPixbuf. This is not the most efficient, but is not terribly different from what is happening today. We create a new cairo_surface_t for the pixbuf manually, with the scale applied. gdk_cairo_set_source_pixbuf() also does this, but without the scale. We could optimize this in the future by making our pixbuf helper return cairo_surface_t* rather than GdkPixbuf*.
* gutterrenderer: add docs for change_bufferIgnacio Casal Quinteiro2015-08-271-1/+8
|
* gutterrenderer: add missing annotation for change_viewIgnacio Casal Quinteiro2015-08-261-0/+7
|
* SearchContext: fix bug regex replace with look-aheadSébastien Wilmet2015-08-231-18/+71
|
* SearchContext: fix bug backward regex searchSébastien Wilmet2015-08-201-52/+15
| | | | | Base basic_backward_regex_search() on basic_forward_regex_search(). The code is simpler, but less efficient.
* SearchContext: fix bug look-ahead regexSébastien Wilmet2015-08-201-33/+79
| | | | | | | | | | | | | | | - Write unit tests. - Adapt basic_forward_regex_search() to support partial matches. The gedit code calls gtk_source_search_context_get_occurrence_position() to know if the selected text matches. get_occerrence_position() traverses the occurrences by first going to tag toggles, and then inside the tagged text, find the exact matches with basic_forward_search(). Finding the exact matches is needed because when contiguous matches are found, when applying the tag the previous match boundary is lost. https://bugzilla.gnome.org/show_bug.cgi?id=752719
* view: remove useless checksSébastien Wilmet2015-08-161-13/+0
| | | | | We know that on the left of the cursor there are only leading spaces. No need to be paranoïd and checks everywhere.
* view: allow NULL out params for get_leading_trailing()Sébastien Wilmet2015-08-161-34/+35
|
* view: always do ctrl+backspace behavior for leading spacesSébastien Wilmet2015-08-161-42/+64
| | | | | | | | | | | | | | The ctrl+backspace deletes all the leading spaces, if only leading spaces are on the left of the cursor. This was tight to the smart-backspace property, but the smart-backspace is more about removing one indentation level when spaces are used for the indentation. So it's better to always handle the ctrl+backspace behavior, outside of the smart-backspace property. The behavior of ctrl+backspace in GtkTextView is to remove the previous word. But the previous word can be on a previous line, so it's not a great default behavior.
* Allow #rgba() colors in named colorsPaolo Borelli2015-08-161-10/+27
| | | | | Fix bug https://bugzilla.gnome.org/show_bug.cgi?id=740910 and add a unit test
* view: improvements of do_smart_backspace()Sébastien Wilmet2015-08-161-24/+26
| | | | | | | - use delete_interactive() and insert_interactive(). - access some properties directly instead of calling the getter. - be sure to avoid a division by zero (with the modulo) - other small things
* view: fix bug in smart-backspaceSébastien Wilmet2015-08-161-14/+8
| | | | " |text" -> do a smart-backspace here didn't work.
* view: fix and simplify get_leading_trailing()Sébastien Wilmet2015-08-161-23/+25
| | | | | | | | | | | | The trailing iter was not set correctly, it was set one character too far on the left. The _previous_ character needs to be checked, since the character pointed to by an iter is the character on the right of the iter location. There was other problems in the implementation, like re-using the "start" variable for... the end of the line. Or hiding the iteration operation of the loops at the end of the long conditions. The code was not really clear, and as a proof of that, there was a bug.
* Fix typo in annotationPaolo Borelli2015-08-161-1/+1
|
* Use GDateTime for the times in the printed outputPaolo Borelli2015-08-161-102/+12
| | | | | | Remove the old cut&pasted strdup_strftime and use g_date_time_format instead. Add to the documentation more details about the supported format specifiers.
* Add nullable annotationsPaolo Borelli2015-08-168-36/+40
|
* view: use GDK_EVENT_STOP in key_press_event()Sébastien Wilmet2015-08-151-6/+6
| | | | The code is clearer than using TRUE.
* Rephrase docs added in last commitPaolo Borelli2015-08-152-4/+6
|
* Add more docs about using icons in the completionPaolo Borelli2015-08-152-0/+15
|
* completion: add support for named-icons and GIconPaolo Borelli2015-08-158-19/+289
| | | | | | Support setting an icon-name or a GIcon on providers and proposals as an alternative to setting the Pixbuf. This makes much easier to use symbolic icons.
* view: add "since 3.18" for the smart-backspace propertySébastien Wilmet2015-08-141-2/+9
| | | | | And do not translate the property descriptions, see commit e9bc0e5d4f5c242a23f7d55d395fb2c70fa83bc9.
* build: Fix cast align warning for clangTing-Wei Lan2015-08-101-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=753435
* BufferInputStream: fix warningsSébastien Wilmet2015-08-091-2/+2
|
* view: fix warningsSébastien Wilmet2015-08-091-7/+16
|
* SearchContext: fix warningSébastien Wilmet2015-08-091-3/+3
| | | | 'start' is also a function parameter.
* PrintCompositor: fix warningSébastien Wilmet2015-08-091-0/+2
|
* MarkAttributes: fix warningSébastien Wilmet2015-08-091-1/+1
|
* gutter: fix warningsSébastien Wilmet2015-08-091-0/+3
|
* FileLoader: fix warningSébastien Wilmet2015-08-091-0/+3
|
* encoding: fix warningsSébastien Wilmet2015-08-091-21/+21
| | | | 'encodings' is a global variable containing all the encodings.
* CompletionInfo: fix warningsSébastien Wilmet2015-08-091-0/+8
|
* buffer: fix warningSébastien Wilmet2015-08-091-1/+1
|
* completion: fix warningsSébastien Wilmet2015-08-091-2/+2
|
* UndoManagerDefault: fix warningSébastien Wilmet2015-08-091-1/+3
|
* PixbufHelper: fix warningSébastien Wilmet2015-08-091-0/+2
|
* language-parser-2: fix compilation warningsSébastien Wilmet2015-08-091-0/+4
|
* GutterRenderers: fix compilation warningsSébastien Wilmet2015-08-094-7/+11
|
* ContextEngine: fix compilation warningsSébastien Wilmet2015-08-091-2/+10
|