aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/PlatGTK.cxx
AgeCommit message (Collapse)AuthorFilesLines
2016-04-27GTK: Fix popup font on GTK >= 3.20Colomban Wendling1-1/+1
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-03-25Since stddef.h is the most basic header, defining size_t, move it first.Neil1-1/+1
2015-11-20Remove line end whitespace.Neil1-1/+1
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 macrosNeil1-8/+8
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.nyamatongwe1-17/+2
2015-09-05With the minimum GTK+ version now 2.18, remove #if conditions required for oldernyamatongwe1-7/+1
versions of GTK+.
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-06-05Simplified retrieval of correct display for widget and ensure works on older ↵nyamatongwe1-10/+1
versions of GTK+.
2015-06-04Restored compatibility with GTK+ 2.18 for cursor calls.nyamatongwe1-0/+4
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 withNeil1-7/+14
gdk_cursor_new_for_display.
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-13Bug [#1703]. Fix bug when drawing text margins in buffered mode which would useNeil1-0/+1
default encoding instead of chosen encoding.
2014-10-19Avoid warning about assiging pointer to integer.Neil1-2/+2
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-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-08Fix leak in ListBox::GetSelection() on GTKColomban Wendling1-2/+4
2014-07-22Make a little safer when there is text that is invalid in the encoding.Neil1-0/+4
2014-06-20Protect against calling Cairo function on versions of Cairo before it existed.nyamatongwe1-0/+2
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-01-21Using ELEMENTS for clarity and safety. Avoid memset for safety.Neil1-2/+2
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 whichNeil1-6/+5
guaranty termination where possible.
2013-12-15Make single argument constructors explicit to avoid unexpected conversions.Neil1-2/+2
2013-12-15Format normalization - whitespace and braces made consistent.Neil1-8/+9
Parameter names added to method declarations.
2013-09-04Fix namespace compilation errors when SCI_NAMESPACE defined.Neil1-13/+1
2013-07-22Bug: [#1470] Fix GTK+ crash for Hebrew text.Unknown1-2/+14
2013-07-21Normalising order of language headers.Neil1-1/+1
2013-07-21Replaced M_PI with a local constant kPi since M_PI is not defined by ISO C/C++.Unknown1-2/+4
2013-06-05Make method const since it has no side-effects.Unknown1-1/+1
2013-05-23Switch to calls compatible with old compilers/run times so that cross compilingnyamatongwe1-3/+3
Linux -> OS X works. From Mitchell Foral.
2013-05-05Since new throws an exception on failure, remove testing of result.nyamatongwe1-5/+3
2013-05-04Replacing raw pointers and allocations with std::vector and std::string.Neil Hodgson1-59/+47
2013-04-26Release all cached fonts when finalising.Unknown1-0/+8
2013-02-21Fixed outdated comment.nyamatongwe1-2/+1