summaryrefslogtreecommitdiff
path: root/vcl/source
AgeCommit message (Collapse)AuthorFilesLines
2016-02-24Fix and tidy-up graphite line final diacriticsJustin Luth1-18/+18
cherry-pick of commits f2df80410b34faa88740f2c0c2b021c74a19d5ca and b073d9f2e35dd0b6cdbc66e31050250a6f34cc55 Change-Id: Iff0218255d0631dc7f97e7fa0eb150544a34da5d Reviewed-on: https://gerrit.libreoffice.org/22640 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Martin Hosken <martin_hosken@sil.org>
2016-02-22WaE vs2015 literal implicit castingNorbert Thiebaud1-5/+5
Change-Id: Ib3da0dd36243fbd316992e9fa88f4bed37b24f6a Reviewed-on: https://gerrit.libreoffice.org/22596 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> (cherry picked from commit 8bcc538953ceec4ef266f16cf72329bc6080d08c) Signed-off-by: Michael Stahl <mstahl@redhat.com>
2016-02-22WaE: 32 to 64 bits implicit on windows..Norbert Thiebaud1-2/+3
a misuse od sal_uLong.. int is just fine here. Change-Id: I09372b6384539cbb0beb557fdd9069cb1c63e235 Reviewed-on: https://gerrit.libreoffice.org/22595 Reviewed-by: David Ostrovsky <david@ostrovsky.org> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> (cherry picked from commit 6d5eeb6af585ae525645d844cbbd56e76678a0af) Signed-off-by: Michael Stahl <mstahl@redhat.com>
2016-02-19Resolves: tdf#97953 spinbuttons are not suitable for reuse as up/down arrowsCaolán McNamara2-55/+63
(cherry picked from commit 4f034adcb79684bc4138e2f9708defd8a3532f74) Change-Id: Ibcd7bd4099210a26513caac6e3b16a88a4c8abad refactor ImplDrawSpinButton there is (supposed to be anyway) no logic change here, just unwind the overly complex flow Change-Id: I9c96f41b0480a60c486b476f383d856b464cd62d (cherry picked from commit 55b33456c14aa5311fb0e3d71f1cad4fbd73cbef) Reviewed-on: https://gerrit.libreoffice.org/22486 Reviewed-by: David Ostrovsky <david@ostrovsky.org> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-02-19Resolves: tdf#97904 opengl stuff isn't implemented for gtk3Caolán McNamara2-0/+14
Change-Id: I1abbceebadf320f28955f54058b2d0ebfc79b9bc (cherry picked from commit d967cc35fd0c77d9f3dd0b3d0c7df850db6ec274) Reviewed-on: https://gerrit.libreoffice.org/22472 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-02-18fix inverted logic regressionCaolán McNamara1-1/+1
regression from... commit 051b29e1025253f35f87a04e297760aa8b40611f Author: Luboš Luňák <l.lunak@collabora.com> Date: Sun Sep 14 15:45:02 2014 +0200 convert Edit autocomplete Hdl to boost signals2 where the conversion was... - if ( maAutocompleteHdl.IsSet() ) + if ( autocompleteSignal.empty() ) instead of the correct + if ( !autocompleteSignal.empty() ) Change-Id: Ie87944d66958af595e64b41236bbf515ef7a1f98 Reviewed-on: https://gerrit.libreoffice.org/22477 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2016-02-18tdf#95618 - opengl - mend control regions and caching for tab headers.Michael Meeks1-1/+1
Some tab headers in some themes unhelpfully enlarge the control region in some states - so query the region size in advance. Sadly the control region querying is something of a train-wreck too - so only use that for CTRL_TAB_ITEMs for now. Also fix Rectangle constructor ordering. Change-Id: I5e66ec541193f5b66a656dd45d5fba67a771e132 Reviewed-on: https://gerrit.libreoffice.org/22447 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2016-02-18tdf#97922 - Mend nonsensical spin invalidation to improve rendering.Michael Meeks1-7/+6
Change-Id: I3a398c47c69cc292a681ebe2414d844c224f3e3e Reviewed-on: https://gerrit.libreoffice.org/22444 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2016-02-18tdf#97922 - get control area right for spinbuttons.Michael Meeks1-1/+2
Also avoid caching both spin-buttons and some other complex types. The cache key needs to be able to include more state. Change-Id: I8eff6b1c5c51d27afb796cae66b45390433138b4 Reviewed-on: https://gerrit.libreoffice.org/22443 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2016-02-17tdf#85761 vcl: JPEG export does not save PPI values correctlyChris Sherlock5-7/+81
JPEG values are currently hardcoded to 96PPI when we export JPEGs. The Graphic class doesn't have an easy way to get the PPI, but this can actually be calculated from the pref size and pref map mode (no idea why it is called "Pref"). Interestingly, you need to get a multiplier to work this out, relative to units of 100th mm. The EPS filter code had a function that does exactly this, but it's entirely based on MapMode units so it was really implemented in the wrong class IMO. I have thus moved it out of PSWriter and into MapMode. This also fixes tdf#65695, which was partially fixed, but had the JPEG PPI hardcoded to 96dpi. Also fixes tdf#97481. Change-Id: Iedb674141dd4e22fcbfb7be357dc777f732aa3aa Reviewed-on: https://gerrit.libreoffice.org/22339 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/22380
2016-02-16tdf#97739 - ensure we have a valid rectangle for spin-button controls.Michael Meeks1-1/+2
Otherwise OpenGL can't render, cache and diff these; so we loose them. Change-Id: Iac4f3ee0fc68154f708a881d5e0255fc9f8df62d Reviewed-on: https://gerrit.libreoffice.org/22374 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Jenkins <ci@libreoffice.org>
2016-02-12Related: rhbz#1287593 subissue 6, get suitable hyperlink colors for dark themeCaolán McNamara1-2/+3
(cherry picked from commit 06e8c58acb6ba667f8fd8c5587a3b3037324971a) Change-Id: Ieb5ed52fa8a9c26b3e839388a58cff295166eed9 Reviewed-on: https://gerrit.libreoffice.org/22313 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2016-02-09tdf#97666 - opengl: convert the bitmap to 8bit grays using GL shaderTomaž Vajngerl2-0/+27
Change-Id: I4d48d29ab752814f71c697a201e70a26ae937775 Reviewed-on: https://gerrit.libreoffice.org/22223 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com> Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2016-02-08tdf#97633 Add API to get the number of OpenGL buffer swaps, including ...Tor Lillqvist1-6/+17
... through UNO (cherry picked from commits dff18c2be9c72aa05940982f506804eb41d3d79a, 2c55288357c9d5410afae58c1fbb97cdfabf0360, 32d98b2551644dea50e58f99ae921a82a0f69753 and 4cd058f3f6568724c65ac88769f17fcc6078da23) Change-Id: Iff29ac615ad4b6516790b1cbbde0215a3cd0efe6 Reviewed-on: https://gerrit.libreoffice.org/22209 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-02-05tdf#97512 make strings localizableAndras Timar2-5/+42
Reviewed-on: https://gerrit.libreoffice.org/22063 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com> (cherry picked from commit e4b98408f60fdbe8248540da58bde8a9bf00c461) Change-Id: I518918689e81475e9aaf0023cf91f4860531ad1e Reviewed-on: https://gerrit.libreoffice.org/22070 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-02-05iat least partially sanitize image dimensionsDavid Tardon1-7/+18
... to avoid enormous allocations later. (cherry picked from commit 93ca0057d6eca140764de446ba9b7d4128e88205) Change-Id: Id178a17d2b901b7f59eab43c7d0f0074518b6c32 Reviewed-on: https://gerrit.libreoffice.org/21790 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-02-05tdf#91017 Enhance WMF import of EMR_ALPHABLEND actionArmin Le Grand4-51/+197
The EMR_ALPHABLEND action was added 2012/2013, but missed support for Bitmaps with Mask/Alpha. Due to that files with WMF containing these actions may look different from before. Added suport to load contained Mask/Alpha information in DIBs and the needed additional processing through the display chain. WMF import is still based on Metafile creation, when it would be using Primitives more original data could be preserved. Reviewed-on: https://gerrit.libreoffice.org/21709 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de> (cherry picked from commit 6f12c93703b676b1b3839caaf2c21788e5d68477) Change-Id: I577569848cee2528328181fa0c7eb7f87857d094 Reviewed-on: https://gerrit.libreoffice.org/22053 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
2016-02-04Resolves: tdf#96653 distorted images on export to pdfCaolán McNamara1-1/+2
regression from: commit ffe150ce903d9cdc62c25ad3437e61d24ede17d6 Date: Fri Dec 4 18:19:08 2015 +0100 tdf#94739 use GetScanlineSize instead of calculating it which was on the right track in the sense that the original code was wrong and only worked for <= 8 bit depth images Change-Id: Iee54a9f29dd0fdaf3e1f2aeb7b9898cecb453e37 (cherry picked from commit 384c815eda697d75706f686dc2ceb227b4d3f245) Reviewed-on: https://gerrit.libreoffice.org/22074 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2016-02-01limit variable scopeDavid Tardon1-36/+36
Change-Id: I961d1378f81b511be3173c61206b53983841abbe (cherry picked from commit eae3881b92ece4ce7ad93dd836e396b0ad44d16b) Reviewed-on: https://gerrit.libreoffice.org/21789 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-01-30sanitize input to avoid large allocationDavid Tardon1-16/+47
Also avoid use of zero-sized array. (cherry picked from commit 2f0cf9872644cb83a3125bb582a7773d8eea2cb6) fix build (cherry picked from commit 05e078fd9578a63a302fce616227f3bd1bdbea6a) Change-Id: I843f6ffa7821b10676e590a5744b1cdc4864913b Reviewed-on: https://gerrit.libreoffice.org/21788 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-01-29tdf#95587: Make rectangle control within tab pages work againKatarina Behrens1-7/+27
Since commit 74407aef94b6d8dfdd6, tab pages|controls are considered to be container widgets (thus, search for the nearest non-layout parent will never find a tab page parent, breaking rectangle control in many dialogs). I've no idea how many other functions' behaviour this changes in an unexpected way, so I've reverted that bit. That however means implementing slightly different approach to tdf#92630 in dialogs (for a tab dialog, find current tab page and go through its children) Change-Id: I3ff5ac13f04b1c5c799c7a1a3769108927809f31 Reviewed-on: https://gerrit.libreoffice.org/21615 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> (cherry picked from commit 39471da6e4d016c52c6cdf6553d7418416a160f4) Reviewed-on: https://gerrit.libreoffice.org/21668 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-01-29sanitize valueDavid Tardon1-0/+2
Change-Id: I0dfde2343263251a6b3034736c5c7219c5e130e4 (cherry picked from commit 55141ac82950aaa289fd5ec9957800030fcdba0c) Reviewed-on: https://gerrit.libreoffice.org/21786 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-01-28Resolves: tdf#96580 Sequence::get doesn't return the start of the dataCaolán McNamara2-6/+6
it returns the start of the underlying uno_Sequence commit 78c83032b266fbb6fc20ddca86df80affaff7c24 Author: Caolán McNamara <caolanm@redhat.com> Date: Wed Sep 30 09:40:16 2015 +0100 maSvgDataArray only populates a uno::Sequence, so use that instead Change-Id: I335d5ee70e95e1a3b204d34f6df4cb62f3fb3cad (cherry picked from commit ab60f6cb0f46cb71172e4248ed40e212f6ebb4da) Change-Id: I8d2c07fec039e58d3644e4ab5eb074ee215f075e
2016-01-28Resolves: tdf#93054 gtk3: implement drag and dropCaolán McNamara1-0/+1
Change-Id: Ib644ea36b8a9e68e023e465ef159b9a4890e5d37 (cherry picked from commit a5b4f6e456bfb735385e8d3d6945ea8f3be1ba94)
2016-01-28remove newly unused WB_NEEDSFOCUS and fragile FLOAT_FOCUSABLECaolán McNamara2-4/+2
Change-Id: Idce03318fbc01039a6c0638879785607970993c0 Reviewed-on: https://gerrit.libreoffice.org/20746 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 016730421e5e58415170b464bf9d9ca47d6c3b4e)
2016-01-28Resolves: rhbz#1289394 gtk3: implement tooltips nativelyCaolán McNamara1-0/+7
side step the whole pile of misery by using native gtk tooltips also gets transparency and native themeing too by default Change-Id: I59552661cd9dc18a563341885bc40fcdadc5264f (cherry picked from commit c96eeb5bf2ef428e7d147258d69825ff97acb226)
2016-01-28Related: rhbz#1289394 always provide the screen area the tip applies toCaolán McNamara3-44/+35
this will make it easier to implement native help tips Change-Id: I984dfadaf02e9b7bf542ba82cf070911c89cb699 (cherry picked from commit 01ef12d173fb2c54a49186c8eb4fa40288b82945)
2016-01-26Resolves: tdf#97331 use VclPtr instead of pointers to avoid crashCaolán McNamara1-7/+7
Change-Id: Ia653a67046cb2cfb7c96367a7483ddc0cb29819e (cherry picked from commit 5d29ed1801a07d4649e095c25935b50f5ad32eb4)
2016-01-26valgrind: memleak on thrown exceptionCaolán McNamara4-12/+10
(cherry picked from commit f5aefab2a62a90c631e05ec29022a2f7e19f00c3) Change-Id: I2788c5fe04a984d6534adbd3186cc652685152e8 Reviewed-on: https://gerrit.libreoffice.org/21737 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com> (cherry picked from commit 636d45438f317d7ef39d660c11f6bab1dc42302a)
2016-01-26valgrind: memleak on thrown exceptionCaolán McNamara1-16/+13
(cherry picked from commit 15b1080e624447ca1af1396023bb1fbfdb44fb26) Reviewed-on: https://gerrit.libreoffice.org/21736 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com> (cherry picked from commit 85918431993fe3637145cca62b133c0c21cb5430) Change-Id: If562dc69290021f898feff9f8e3983b867075172
2016-01-25absolute seek is clearerDavid Tardon1-2/+2
Change-Id: Iec8ff121e630bc6f63f935af248edce4dd572428 (cherry picked from commit 4c241896ffab41da0cc1bcbf7e3401f205da28a1) Reviewed-on: https://gerrit.libreoffice.org/21787 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-01-25tdf#95573 - stop (crazy) busy loop from blocking rendering.Michael Meeks1-1/+1
Attempt to blind fix extensions problem on OS/X. Some quite amazing code there. To avoid each busy idle from invalidating, avoid progress bar invalidation for the same %age being set. Change-Id: If96f8615c0ea712681e008972b3abe1c070a3227 Reviewed-on: https://gerrit.libreoffice.org/21436 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-01-12tdf#96655 - clear non-offscreen status bar controls before render.Michael Meeks1-3/+4
Change-Id: I02a85ae4572dc23df2157af1cf164a0f82701613 Reviewed-on: https://gerrit.libreoffice.org/21301 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2016-01-12tdf#94831: Check for null mpReadAccess before first useMatúš Kukan1-21/+18
There was erroneously added code before check in 45e8e0fbee40f9a8d91f4c559c8bbb16dd7b3f36. Change-Id: Ie2e84cfc061097c25e5d799e9c388abd9724bd93 (cherry picked from commit d5dcfe40ff3774d82a7b8f9f3d75b5b3cdac78ba) Reviewed-on: https://gerrit.libreoffice.org/21371 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
2016-01-07Fix dbgutil build in case GL_DEBUG_SEVERITY_NOTIFICATION_ARB is undefinedTor Lillqvist1-0/+2
Change-Id: I14628e9dee8651e87b4782057c4681fded5e4643 (cherry picked from commit 1fd7994a4ea7daf8bdbf394f4d5cd8f678d00758)
2016-01-07OpenGL transitions: squashed 5 commits into this oneEmmanuel Gil Peyrot1-0/+6
vcl: Ignore i965’s shader compiler debug (cherry picked from commit 928fe134ff6ea85f732b36a1ab11336f1d829531) slideshow: Fix a few issues in the Glitter transition Remove an unused variable, add comments, reduce the time a tile stays black, and don’t rely on implicit casts of integers into floats. (cherry picked from commit 22480b20130d10f4691cdf0a658040be7f36e47b) slideshow: Improve the Ripple transition to match PowerPoint better (cherry picked from commit 1d411cad5a7d78ead8cffb5da522f1e0fba31187) slideshow: Improve the Vortex transition to match PowerPoint better (cherry picked from commit d886fef25c5978dd4b07fa0e3ce2402874a6c29a) slideshow: Define inverse() to bring back the GLSL version to 1.20 (cherry picked from commit a301da7cb6c562cd21983d9b3b34dc01235a82a5) Change-Id: Ifd33ae982b762af3ea8d88b2b2de259aabeebc9a Reviewed-on: https://gerrit.libreoffice.org/21116 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2016-01-07vcl: opengl - Kill the last glErrors on common paths.Michael Meeks2-0/+43
Re-work the makeSomeOpenGLContextCurrent logic into a shared function with the existing AcquireContext logic in the SalOpenGLGraphics impl. Use an OpenGLVCLContextZone placeholder to do both context and zone management - to include destructors into the zone. Fix a number of error cases around SalBitmaps where we did not have a GL context associated when allocating, and/or freeing textures.. Don't drag a (potentially) slower context around in the OpenGLSalBitmap when we're going to check / fetch a better VCL context anyway. Remove ScaleOp pieces to synchronize with master for maintenance. Change-Id: Ibbb2358c47156cd078ad28b6aad4f03af36aaf23 Reviewed-on: https://gerrit.libreoffice.org/21149 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2016-01-06tdf#96687 - force validation after External InputJustin Luth1-0/+1
After external input (EndExtTextInput), the selection was marked as invalid, but bFormatted remained true, so all the functions that re-evaluated and marked the portion as valid again were skipped and therefore the invalid portion was not painted. Change-Id: Ibb2208bdaeb8ed17a4a34fa378a2fc750abf1b07 Reviewed-on: https://gerrit.libreoffice.org/20986 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Justin Luth <justin_luth@sil.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> (cherry picked from commit 5a217ada5e28e17f052ebec8e53dce05c2aa9cae) Reviewed-on: https://gerrit.libreoffice.org/21117 Tested-by: Justin Luth <justin_luth@sil.org>
2015-12-23tdf#90319: make image flipping work in writer for pngpasqualm1-7/+40
Flipping of images was not working if it was only horizontal or vertical, if both options were selected flipping was treated as a 180º rotation and that make it work. Problem only affected png files because this kind of files are treated different from jpg's. Change-Id: Ia0e4a2b16a714cce0b7fb00d6f0a25fb3552d3b8 Reviewed-on: https://gerrit.libreoffice.org/20782 Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com> Tested-by: Jacobo Aragunde Pérez <jaragunde@igalia.com> (cherry picked from commit 3119440a80282692640378fde5e37974ab63f096) Reviewed-on: https://gerrit.libreoffice.org/20805 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-12-23vcl: opengl - lean on the default window's context much more.Michael Meeks1-9/+10
Avoid creating our own OpenGLContext to render until we need to refresh the screen. Also always re-use context from default window. This simplifies our OpenGL Context use significantly, and avoids problems with the initial default context getting destroyed in some cases. Change-Id: Ic2239236d3e1f14fd27979c9aab85efd84e6b760 Reviewed-on: https://gerrit.libreoffice.org/20853 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-12-18Update hardware/OS info in About dialogYousuf Philips1-3/+3
Change-Id: I2c70e88cfa2663d0b3db48c309d7cf1630bbddbd Reviewed-on: https://gerrit.libreoffice.org/20632 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com> (cherry picked from commit 52856b6ea7b6b01e8a8455ed657dc16b79de6790) Reviewed-on: https://gerrit.libreoffice.org/20635 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2015-12-16tdf#96119 Cannot select item with mouse in any combobox / drop down menuJuergen Funk1-0/+3
this commit has make the problem, the removing of the SALEVENT_MOUSEACTIVATE commit dd351dd728687cffe432ce0ec9367ceb80e097fb Author: Noel Grandin <noel@peralex.com> Date: Tue Nov 24 08:50:39 2015 +0200 loplugin:unusedfields in vcl/ and remove the unused SALEVENT_MOUSEACTIVATE stuff Without of there, when click in the opened list-box it send first the "PreNotify" with "MouseNotifyEvent::LOSEFOCUS" and that close the listbox. After that, it send the mouse-event to a closed window, that is the reason why the Listbox not get the mouse-click. With this patch, first send the mouse-click and then the "PreNotify" Change-Id: I5a09b1524335434f043d22bc71f7e38559fb1c0b Reviewed-on: https://gerrit.libreoffice.org/20708 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/20734 Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-12-15gtk3+wayland: enable manual movement of toolbarsCaolán McNamara2-1/+8
via gtk_window_begin_move_drag so add some BYDRAG/ByDrag hints to select mechanism to move window by Change-Id: Icc58653dff752a6d4ee49446647d7ede2af9dd9b (cherry picked from commit ea4c75dcc9c3e53e7ef40bd273ea18a48ea9b18d)
2015-12-14Related: rhbz#1290014 gtk3: use gtk_window_set_modal on modal dialogsCaolán McNamara1-1/+2
which makes modal dialogs (which are most of them) place correctly under wayland. Modeless ones are still uselessly shoved far to the left, but this makes things near usable and gives the same "graying into the bg" effect for the main window as other gtk apps Change-Id: If1486feb7631c5a0c2aa6efac3a6b9dd1b215daf Reviewed-on: https://gerrit.libreoffice.org/20699 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 8d5822983e9b6a1e04874ce4d2c807fd0cf1ee04) Reviewed-on: https://gerrit.libreoffice.org/20700
2015-12-14vcl: use a custom tag for VCL OpenGLContext's to avoid re-use.Michael Meeks1-0/+1
Other code is out of legacy mode now, so can't legacy as a proxy. Change-Id: Ie3807a3af680b707f2f08d058db955bc9cae6c2b Reviewed-on: https://gerrit.libreoffice.org/20647 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2015-12-12opengl: Add Geometry Shader support to OpenGLHelperEmmanuel Gil Peyrot1-3/+59
This is the ground work for some later transitions in slideshow. Change-Id: Ib200cf7fabd579256a5255b0fb5d8c4accf7d24b (cherry picked from commit facfbeb5cbff191da956827bc37df7bc74ed0b81)
2015-12-11tdf#93529 - move to a Mac-like double-buffered OpenGL model.Michael Meeks1-0/+10
This moves us to always rendering to an off-screen texture, and then (at idle) blitting this to the screen & swapping buffers. Ideally we should never see any rendering, or flicker again with this approach. Several fixes are included: + avoid multiple OpenGL contexts being created for the same window, created excessive flicker problems. + de-virtualize UseContext - which context we use is less critical. + kill 'mbOffscreen' distinction - all VCL rendering is offscreen. + implement 'doFlush' and high priority idle flushing. + bind stencil buffer for clipping vs. textures - fixing complex clopping when rendering to virtual-devices, and off-screen. + document environment. variables. + use white as default background glClear color, but red or random color for DBGUTIL. Change-Id: I6be08595b6c8deb7e6db0dbd81308b2c97d2b4ff
2015-12-11Get Double-buffered context creation working on linux.Michael Meeks1-6/+7
Change-Id: I3db1d6792fcd51577f047b82029124ec825ea319
2015-12-11tdf#93991: One pixel here or there, who is counting?Tor Lillqvist1-1/+1
<tools/gen.hxx> Rectangle, I love you. Change-Id: Iaf7ae2930d6098349f04cd429cd35dffcaf7ca3b (cherry picked from commit edbe61b671bc4c384be914099ee8bcdfd8491f3a)
2015-12-11tdf#85767 Enable rotated/flipped icons in the SidebarSamuel Mehrbrodt5-77/+80
This is a combination of 3 commits: * Make buttonstatuslistener a generic listener for any widgets ac97f32307feb488c86d6fa962258fe79320d31b * Move icon rotation/flip handling from ToolbarManager to vcl's Toolbar c5fe98905deac6de4f9e76a17097ce83fe381ac3 * These should still be virtual. e20df218257c45c5daa234daafac9609d53aa77f Change-Id: I34e2446660ec94d60654b4db40ce1bbb8014477f Reviewed-on: https://gerrit.libreoffice.org/20466 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>