aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/PlatGTK.cxx
AgeCommit message (Collapse)AuthorFilesLines
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
2013-01-01Properly update the Pango contexts for the target surfaceColomban Wendling1-0/+4
This fixes drawing on a surface that has different settings (like scaling) than the display surface, by performing the measurements on a layout properly set up for the target surface. In practice, this fixes e.g. printing on a scaled surface. --- gtk/PlatGTK.cxx | 4 ++++ 1 file changed, 4 insertions(+)
2013-01-01Switch to non-deprecated thread and mutex APIs when using GLib >= 2.31.Neil Hodgson1-0/+12
2012-07-21Add extra argument to RGBAImage constructor.Neil Hodgson1-1/+1
2012-05-27Disable a warning that clang 3.0 gives incorrectly.Neil Hodgson1-0/+5
2012-04-29Fix autocompletion list being too short on GTK+ 3.x.nyamatongwe1-1/+6
2012-04-21Use C++ casts instead of C casts to avoid warnings from cppcheck.nyamatongwe1-5/+5
2011-12-09Allow fractional widths for single character strings.nyamatongwe1-4/+4
2011-12-12On GTK+ 2.x, change SurfaceID from GdkDrawable* to a cairo_t* so that it isnyamatongwe1-5/+1
the same as on GTK+ 3.x. This simplifies compatibility and allows implementing printing on GTK+ 2.x.
2011-11-04Round to nearest pixels horizontally to avoid background artifacts on OS X.nyamatongwe1-0/+2
From Mitchell Foral.
2011-09-27Made recent fractional positioning and ARGB code compatible withnyamatongwe1-6/+21
old versions of Pango and Cairo.
2011-09-25Palette support removed.nyamatongwe1-129/+26
2011-09-24Merged fractional text positioning branch.nyamatongwe1-80/+76
2011-09-24Removed support for GDK drawing in favour of Cairo which has beennyamatongwe1-842/+22
available since 2.8. Removed #ifs for versions earlier than 2.8.
2011-09-09Update deprecated calls to GTK+ 3 maintained functions.nyamatongwe1-0/+4