aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk
AgeCommit message (Collapse)AuthorFilesLines
2016-04-27GTK: Get border for the exact current style's state on GTK 3Colomban Wendling1-3/+4
GTK 3.20 doesn't seem to like it so much when looking up details of a non-exact current style context state, so use the current one. This is GTK being really picky as in this case we are just missing the `DIR_LTR` flag, which we definitely don't care about, but let's make it happy.
2016-04-27GTK: Fix auto-completion popup sizing code for GTK 3.20Colomban Wendling1-24/+39
GTK 3.20's GtkScrolledWinodw doesn't like having a too small allocation and spews scary assertion failures. Fix that by requesting the real size we'd like instead of hard-coding 1 as small-enough value in our overriding height requisition method. The actual value doesn't really matter so long as it's small enough anyway, as we resize the popup to fit later on. Note: this moves the actual implementation of ListBoxX::GetRowHeight() to the new convenience function treeViewGetRowHeight(), with no changes in implementation.
2016-04-27GTK: Plug a memory leakColomban Wendling1-0/+1
2016-04-27GTK: Fix fetching the frame border width on GTK 3.20Colomban Wendling1-1/+24
GTK 3.20 introduced a sub-node named "border" to the frame, requiring to lookup the border on that sub-node rather than on the frame itself. Unfortunately supporting this requires to be built against GTK 3.20, as it requires API this version introduced. This means that a build against an older version won't be able to get the popup sizing right if running on 3.20. To mitigate this, add reasonable fallback defaults when running 3.20 but built on an earlier version, to try and avoid 2px-scrolling on GTK 3.20's default theme.
2016-04-27GTK: Properly ask wText what size it wants to please GTK 3.20Colomban Wendling1-2/+11
It's not really of any use as we do know any size would do as wText is ours anyway, but GTK 3.20 doesn't like allocating without querying the preferred size beforehand, so do it. As wText has a size_request() of 100x100, this might change how we allocate in case we used to underallocate it, but AFAIK we don't, and it is the real minimum size expected.
2016-04-27GTK: Fix popup font on GTK >= 3.20Colomban Wendling1-1/+1
2016-04-28Fixes for problems with C++11 <regex>.Neil Hodgson1-2/+2
For Qt on Unix, set to build as C++11. Avoid deprecation warnings in PySide. For GTK+ allow turning off C++11 <regex> with make NO_CXX11_REGEX=1.
2016-04-14Simplified IME caret positioning.johnsonj1-12/+8
2016-04-12Font cache removed along with its thread locking and initialisation.Neil Hodgson1-249/+21
Platform-independent caching is available and there is no performance difference after removal.
2016-04-08Scintilla Gtk: use gdk_threads_add_idle_full() instead of g_idle_add_full() ↵Robin Haberkorn1-16/+5
and gdk_threads_add_timeout() instead of g_timeout_add() * The g_idle/g_timeout watchers are not executed with the Gdk lock held. This causes memory corruptions and crashes when accessing the Scintilla object from the non-main-loop-thread. At least this was the case after Gdk 3.6 since Scintilla used gdk_threads_enter()/leave() for earlier versions. The timeout handlers have possibly always been broken. * The new version should work with non-deprecated APIs in all Gdk versions. * Even though this only fixes the idle handlers in Gdk >= 3.6 where gdk_threads_enter() is deprecated (the only way to provoke above situation) - and the timers of course - this patch makes the code more elegant.
2016-03-29Feature [feature-requests:#1142]. Allow Super modifier on GTK+.Neil1-5/+3
2016-03-25Since stddef.h is the most basic header, defining size_t, move it first.Neil1-1/+1
2016-03-10Fix caret position bug on Qt and Gtk for win32 for Korean.rel-3-6-4johnsonj1-0/+2
2016-03-07To avoid failures with MinGW 4.9 switch language standard from c++0x to gnu++0x.Neil1-1/+2
MinGW 4.9 doesn't install a copy of gcc as cc.exe so explicitly set CC=gcc.
2016-02-09Fix 64-bit build on Windows which was broken in 3.6.3 as long only 32-bits.Neil1-1/+1
2016-01-02IME attribute processing simplified for GTK+.johnsonj1-32/+19
2015-12-15Minor cleanups for GObject introspection.Neil1-3/+0
Avoid doc-comment in header as they are interpreted by g-ir-scanner, fix a typo, remove empty lines, add to change log.
2015-12-13Fix issues raised by review and some moreThomas Martitz1-3/+3
- remove any notion of deprecation of legacy symbol names - make sure typelib search path is set for test program - add separate test target to test/gi/makefile - improve g-ir-scanner call command line - fixed gtk2 support of test test/gi/gi-test.py
2015-08-10Enable g-ir-scanner to run on ScintillaWidget.hThomas Martitz1-4/+21
g-ir-scanner expects a certain naming scheme. Adhering gives the benefit of automatically getting correct gobject-introspection data.
2015-12-15Simplify IME code by using g_unichar_to_utf8.johnsonj1-44/+21
2015-12-14Block IME when some selected text is protected.johnsonj1-1/+1
2015-12-11Korean input by word fixed.johnsonj1-4/+3
2015-12-08Cancel IME composition for read-only documents.johnsonj1-0/+5
2015-11-20Remove line end whitespace.Neil2-3/+3
2015-11-13Check for NULL value in ScintillaGTK::ForAll()Jiří Techet1-2/+4
2015-11-11Don't use -fPIC on Windows due to warnings.Neil1-1/+6
2015-11-09Add -fPIC for position-independent code to allow linking as a shared library.Neil1-1/+1
2015-11-06Unparent scrollbars in dispose on GTKJiří Techet1-3/+23
Dispose should be used to remove references to objects that might point to the destructed object. This is the case of scrollbars whose parent is ScintillaGtk and which internally hold pointers to it. This eliminates warnings on OS X.
2015-10-25GTK: Fix autoc popup row height on GTK2 when it changes at runtimeColomban Wendling1-2/+2
Now the popup is cached the row height has to be re-computed when the font changes on GTK2 too. Closes [bugs:1774].
2015-09-27Simplify casting by using static_cast instead of reinterpret_cast, glib macrosNeil2-29/+30
for passing integer values to callbacks, and avoiding casts by making functions follow prototypes exactly.
2015-09-05Remove #if sections which are not required for GTK+ 2.18.nyamatongwe2-77/+4
2015-09-05With the minimum GTK+ version now 2.18, remove #if conditions required for oldernyamatongwe2-31/+2
versions of GTK+.
2015-09-04Change FillVirtualSpace to ClearBeforeTentativeStart and delete selected text.johnsonj1-1/+1
2015-09-03Removing support for old GTK+ versions. Minimum GTK+ is 2.18 with glib 2.22.Neil1-6/+1
2015-08-26Removed setting list colours on GTK+ 3.16+ as no longer appears needed.Neil1-1/+5
2015-08-26Use current CSS theming calls instead of deprecated gtk_widget_override_font.Neil1-2/+42
2015-08-26On GTK+ 3.x, fix height of lines in autocompletion lists to match the font.Neil1-1/+5
2015-08-16On GTK+, support code page 866 with SC_CHARSET_OEM866.Serg Stetsuk1-0/+2
2015-08-06Bug [#1743]. Never report the client rectangle as having a negative width orNeil1-0/+4
height as this causes "Invalid rectangle passed" warning messages.
2015-07-30Updated header dependencies to include Sci_Position.h.Neil1-371/+512
2015-07-28Avoid candidate box randomly popping up away from edit pane with (especiallyjohnsonj1-0/+1
Japanese) IME input.
2015-07-27Add Position.h as a place-holder and to allow #include "Position.h" in source.Neil1-0/+1
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.