aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk
AgeCommit message (Collapse)AuthorFilesLines
2015-05-22GTK: Fill the scrollbars junctionColomban Wendling1-0/+18
Fill the scrollbars junction square with the appropriate style on GTK version having a style for it (GTK >= 3.4). Mostly fixes [bugs:#1611].
2015-05-22GTK: Workaround ABI issue with Windows GTK2 bundle and GCC > 3Colomban Wendling1-1/+16
GtkScrolledWindow contains a bitfield, and GCC 3.4 and 4.8 don't agree on the size of the structure (regardless of -mms-bitfields): - GCC 3.4 has sizeof(GtkScrolledWindow)=88 - GCC 4.8 has sizeof(GtkScrolledWindow)=84 As Windows GTK2 bundle is built with GCC 3, it requires types derived from GtkScrolledWindow to be at least 88 bytes, which means we need to add some fake padding to fill in the extra 4 bytes. There is however no other issue with the layout difference as we never access any GtkScrolledWindow fields ourselves. See http://lists.geany.org/pipermail/devel/2015-April/thread.html#9379
2015-05-13Make a single argument constructor explicit.Neil1-1/+1
2015-05-13Bug [#1703]. Fix bug when drawing text margins in buffered mode which would useNeil1-0/+1
default encoding instead of chosen encoding.
2015-03-30Use inline IME for Korean and decide whether input is Korean more accurately.Neil1-6/+7
From johnsonj.
2015-02-11Don't disable adaptive speed of scrolling on OS X with GTK Quartz backendJiří Techet1-3/+4
There does not seem to be any adaptive scroll speed control when using the Quartz backend so we can use the one provided by Scintilla.
2015-01-22Since gtk_widget_set_double_buffered is deprecated by GTK+ 3.14, only use itNeil Hodgson1-0/+2
when building for earlier versions.
2015-01-22Specify methods that do not use this as static.Neil Hodgson1-2/+2
2015-01-22Fix incorrect call. Was supposed to avoid empty drop.Neil Hodgson1-1/+1
2015-01-14Make Japanese IME work in windowed mode.Neil Hodgson1-1/+1
From johnsonj.
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.