aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk
AgeCommit message (Collapse)AuthorFilesLines
2015-07-05GTK: Fix leaking scrollbarsColomban Wendling1-0/+3
2015-06-05Simplified retrieval of correct display for widget and ensure works on older ↵nyamatongwe2-15/+2
versions of GTK+.
2015-06-04Restored compatibility with GTK+ 2.18 for cursor calls.nyamatongwe2-2/+9
2015-06-03GTK: Don't use gdk_window_set_user_data() in a deprecated mannerColomban Wendling1-0/+4
Since GTK 3.8 gtk_widget_register_window() should be used instead of gdk_window_set_user_data() in a widget's ::realize() method. gtk_widget_unregister_window() is called by the GtkWidget's ::unrealize() handler we chain up to. This has no functional impact.
2015-06-03GTK: Use the proper GTK3 way to set widget window backgroundColomban Wendling1-6/+2
It also drops use of gtk_style_context_get_background_color() that has been deprecated in 3.16. This however has no functional changes.
2015-06-03GTK: Remove unused prototypeColomban Wendling1-1/+0
2015-06-02GTK: Fix runtime completion popup warningColomban Wendling1-1/+2
GtkScrolledWindow in GTK 3.16 might have a minimum and natural height of 0 if GTK_OVERLAY_SCROLLING is enabled (which is the default), so we need to fix our overridden minimal height to never be greater than the natural height. Do that by only changing the minimal height if it is greater than what we want. I don't know why we didn't use to set 0 here, but it might be that a height of 0 caused problems on older GTK versions, so keep 1 to be sure.
2015-05-29As of GTK+ 3.16, gdk_cursor_new is deprecated and has been replaced withNeil2-11/+20
gdk_cursor_new_for_display.
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