aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk
AgeCommit message (Collapse)AuthorFilesLines
2015-01-02Use gtk_clipboard_request_contents() instead of gtk_selection_convert() for ↵Jiří Techet1-2/+12
paste on GTK When compiling Scintilla on OS X with GTK2 backend (and GTK2 with Quartz backend), gtk_selection_convert() doesn't work. GtkClipboard seems to work fine though.
2014-12-17More natural looping over visual attributes.Neil1-3/+3
2014-12-09Using indicators for inline IME.Neil1-127/+251
From johnsonj.
2014-12-05Extract FillVirtualSpace so it is not repeated and can be made less complex inNeil1-4/+1
the future.
2014-10-19Avoid warning about assiging pointer to integer.Neil1-2/+2
2014-10-11GTK: Don't create widgets in the ::realize handlerColomban Wendling1-13/+16
Creating a widget may lead to a ::hierarchy-changed signal to be emitted, which itself may lead a tooltip window to be unrealized. This is problematic because it can lead to the ::unrealize handler to be called during the ::realize handler, breaking most of the logic there assuming the widget was properly realized. This fixes adding a Scintilla widget inside a GTK2 tooltip. GTK3 didn't seem to be affected. Also properly destroy the preedit popup window with the widget.
2014-10-09Avoid extra space when pasting from external application on Windows.Neil1-0/+7
From Mitchell Foral.
2014-10-06Include <stdexcept> due to report of a problem with compiling Document.h.Neil1-0/+1
2014-10-02Allow using C++11 <regex> for searches as a provisional feature.Neil1-1/+5
2014-09-24GTK: Fix auto-completion popup row height computation on GTK 3.14Colomban Wendling1-0/+9
GTK 3.14 changed how the cell padding is calculated, and I can't seem to understand the new logic yet. So, use the correct API for computing the row size, which unfortunately doesn't work for us on GTK2, but otherwise is a better way to go anyway. Tested with GTK 3.2, 3.8, 3.10, 3.12 and 3.14.
2014-09-16GTK: Don't hardcode auto-completion popup frame border widthColomban Wendling1-3/+6
2014-09-12GTK: Fix auto-completion popup sizing on some themesColomban Wendling1-11/+11
2014-09-12GTK: Allow the auto-completion popup to be as small as neededColomban Wendling1-13/+32
2014-09-11GTK: Fix auto-completion popup width to better fit contentsColomban Wendling1-2/+23
2014-09-11GTK: Fix auto-completion popup height to better fit contentsColomban Wendling1-22/+30
2014-09-05Avoid shadowed identifiers.Neil1-11/+11
2014-09-04GTK: fix cached completion popup window sizingColomban Wendling1-13/+14
Only cache the popup window itself and not its content, as it seems the window sizing is affected whether the content was just created or not.
2014-09-03Normalise header inclusion order.Neil1-1/+1
2014-09-01GTK: cache the completion popup windowColomban Wendling1-3/+22
This avoids creating and destroying windows quickly under stress, which may lead to XID collisions. See e.g. https://bugzilla.gnome.org/show_bug.cgi?id=581526 and https://bugzilla.gnome.org/show_bug.cgi?id=590690 Closes [bugs:1649].
2014-08-11Handle empty pre-edit string.Neil1-1/+1
From johnsonj.
2014-08-08Fix leak in ListBox::GetSelection() on GTKColomban Wendling1-2/+4
2014-08-08Allow IME to be displayed inline for Korean.Neil1-28/+133
From johnsonj.
2014-08-05Create a class to manage pre-edit strings and ensure their resources are freed.Neil1-33/+31
2014-08-02Clang warns for register keyword used in system headers so turn off warning.Neil1-1/+1
2014-07-22Make a little safer when there is text that is invalid in the encoding.Neil1-0/+4
2014-07-15Implement separate timers for each type of periodic activity and turn them ↵Neil Hodgson1-16/+41
on and off as required. This saves power as there are fewer wake ups. A tolerance value is provided so that platforms that support coalescing timers, Windows 8+ and OS X 10.9+, can use them. The previous global 100 millisecond timer may still be used by non-core platforms.
2014-06-20Protect against calling Cairo function on versions of Cairo before it existed.nyamatongwe1-0/+2
2014-07-08Updated make dependencies for new files.Neil1-47/+98
2014-07-08Split out EditModel, MarginView, and EditView classes into separate files.Neil2-1/+5
2014-07-08Specifying some methods as const as they are used from display and measurementNeil1-3/+4
code that will be changed to have read-only access.
2014-06-24Ensure context is not freed for measurement surfaces as it is NULL.Neil1-1/+1
2014-06-23GTK: Don't create unnecessary drawing contextsColomban Wendling1-14/+9
When surfaces are created without an explicit target surface they are only used for measurement purposes, so don't create a unnecessary drawing context out of the widget's surface. This avoid calling gdk_cairo_create() outside a draw handler, which GTK 3.14 stops allowing [1]. [1] https://mail.gnome.org/archives/gtk-devel-list/2014-June/msg00010.html
2014-06-16Fix crashes on Ubuntu 12.04 caused by overlay scrolll bar causing the drawingNeil1-0/+16
surface to be finished.
2014-05-31Remove definitions that are provided by make.Neil1-4/+0
2014-05-31Compatibility with makefile conventions: use CXX for C++ compiler and CC forNeil1-7/+7
C compiler. Allow overriding file deletion command on command line so that 'rm' can be used when cross-compiling from Unix to Windows.
2014-05-24Header include statements are now in a standardised order with that orderNeil1-13/+15
defined in scripts/HeaderOrder.txt.
2014-05-19Fix missing redraws on GTK < 3.9.2Colomban Wendling1-5/+15
Also, make the recent redraw fixes depend on the GTK version Scintilla is running against, rather than built against. This allows for the same build to work with both GTK < 3.9.2 or >= 3.9.2.
2014-05-14GTK: Avoid flickering when wrapping linesColomban Wendling1-1/+1
2014-05-14Bug [#1567]. Fix display flashing when scrolling with Gtk+ 3.10.Neil1-4/+23
Includes work from Sébastien Granjoux and Colomban Wendling.
2014-05-02Use exact SciFnDirect function signature for DirectFunction as earlier versionNeil1-3/+3
depended on undefined behaviour.
2014-05-02Enable building with Clang undefined behaviour sanitizer.Neil1-2/+6
2014-05-01Consolidate insertion for paste into Editor class and perform line endNeil1-9/+3
conversion in Editor.
2014-04-18Fix calls deprecated in GTK+ 3.10.Neil1-2/+11
2014-04-16Allow filtering of insertions.Neil1-2/+3
2014-01-21Using ELEMENTS for clarity and safety. Avoid memset for safety.Neil2-4/+5
2014-01-18Draw cicles centred as intended so that folding margin markers look correct.Neil1-1/+1
2013-12-22Avoid unsafe strcpy, strncpy, and strcat replacing with safer functions whichNeil2-8/+7
guaranty termination where possible.
2013-12-15Make single argument constructors explicit to avoid unexpected conversions.Neil2-4/+4
2013-12-15Format normalization - whitespace and braces made consistent.Neil1-8/+9
Parameter names added to method declarations.
2013-11-16ScintillaGTK: Call superclass finalize() in ScintillaObjectThomas Martitz1-5/+5
The ScintillaObject class does not chain up to its superclass in the finalize() function. This is a bug and must be done according to the GLib/GObject documentation. One effect of this is that the destroy notifiers supplied in e.g. g_object_set_data_full() are never run. Fixes Bug: #1549 ScintillaObject.finalize() does not chain up