summaryrefslogtreecommitdiff
path: root/vcl/unx
AgeCommit message (Collapse)Author
2015-10-26Let Gtk handle icon names instead of ResMgr for window and trayiconSimon Steinbeiss
The icons in the themes should be deleted in a second step and the defines should be transformed into an ENUM and stored in one place. Furthermore we will have to decide whether to live with gtkimagemenuitem despite its deprecation in Gtk3.10 or whether to pack GtkImages and GtkLabels in GtkBoxes inside GtkMenuItems and live with the additional padding, which potentially looks horrible. Change-Id: I8dec44375e40a4d2b6668792bc4b813efe83ff31 Reviewed-on: https://gerrit.libreoffice.org/19601 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2015-10-21refactor out some com::sun::star typedefsNoel Grandin
which mostly serve to make the code harder to read Change-Id: Ia2a83fee9f850ab6f0bea6305ce8600d6b785fe8
2015-10-20Add org.mate.SessionManager supportAndrzej Hunt
This is valid for Mate <= 1.10 (As of writing, 1.10 is the current stable release - so we'll have to keep shipping this for quite a few years to come.) Change-Id: I4d1f81c50923148e710eac22f5428b2a1c41f0e9
2015-10-20Add support for org.freedesktop.PowerManagement.Inhibit tooAndrzej Hunt
This one seems to be supported by KDE (partially) and XFCE. On KDE it doesn't inhibit the ScreenSaver, however it's the only inhibition that appears to be available on XFCE (untested due to lack of XFCE system at hand). Change-Id: I4eab04d8ef66fc4fa55f57add46cb1ad15a8e2b3
2015-10-20Move DPMS inhibition to ScreenSaverInhibitorAndrzej Hunt
We should also be doing this irregardless of vcl backend Change-Id: I46ec2c654dfd9ab3c6bcf6da19e7ffa2c05890b9
2015-10-20Deduplicate XGet/SetScreenSaver, move to ScreenSaverInhibitorAndrzej Hunt
I haven't been able to find anyone actually using this API, however it's probably best not to remove it either? Change-Id: I0ca11591bfd54f9882d8081a94b012f638936ce5
2015-10-20Deduplicate XAutoLock inhibition and move to ScreenSaverInhibitorAndrzej Hunt
(Successfully tested with xautolock 2.2) Change-Id: I55a3703322dd6792689ff3c3e85b27840ee2bc55
2015-10-20Lambda'ise the almost identical FDO and GSM screensaver inhibitionAndrzej Hunt
This doesn't save us much for now, but could be useful when yet another screensaver inhibition standard is introduced. (The GSM/gnome inhibition currently requires passing the X11 window handle/id, which suggests that at some point they will have to update their screensaver inhibition api.) Change-Id: I4fa7bc15f089d112777fb166ab469045c002ae48
2015-10-20Move org.gnome.SessionManager.Inhibit to ScreenSaverInhibitorAndrzej Hunt
We should be using the same inhibition code irregardless of vcl backend on Linux. Change-Id: I996630666e32c40a52958edb248466c815a5e0e5
2015-10-20Implement org.freedesktop.ScreenSaver inhibitionAndrzej Hunt
This is required for screensaver inhibition on kde (this might also be supported on further desktops). It would appear to make sense to move all screensaver inhibiting code here into one location, since it should be shared across the generic unx, and gtk vcl backends - currently we have completely independent implementations for gtk/gtk3 (which only supports XSetScreenSaver, and gnome's dbus inhibition), and the generic backend for all other plugins, which supports XSetScreenSaver, xautolock, DPMS, but no dbus inhibition. Change-Id: I9c5af8021b0b49b5c93ed75a7d25e3208d5e9629
2015-10-20loplugin:defaultparamsStephan Bergmann
Change-Id: I3e5ee77b51eb8e1207d3f95e6a1d9d8272532ba6
2015-10-19loplugin:defaultparamsStephan Bergmann
Change-Id: I8db42173f116372b1c849284540c111635c3582e
2015-10-17tdf#94936 Update the button removal hack to 3.18Maxim Monastirsky
Gtk 3.18 has the filename entry in the header too. Change-Id: Id1abf5baf0e82c03e27ede2bfc67ec1983a2c4fb
2015-10-17tdf#95096 avoid invalid cursor position exceptionJustin Luth
Somehow, accessible text can lose focus and so when attempting to set the cursor, the string we were just working with may no longer be available, so verify that the cursor position is still valid before setting it. If the text can just disappear like that, then potentially we are still forcing the cursor into the wrong place (since the string is different than expected). However we can at least make sure the program doesn't crash/exit without saving... Change-Id: I8dcaf4625d187cb75008bdc0af0e3a546090a018 Reviewed-on: https://gerrit.libreoffice.org/19414 Reviewed-by: Justin Luth <justin_luth@sil.org> Tested-by: Justin Luth <justin_luth@sil.org>
2015-10-15cppcheck:variableScopeNoel Grandin
Change-Id: I9b671637fbe0f32e695d22b74bfb40a39a9fe884 Reviewed-on: https://gerrit.libreoffice.org/19364 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-14WaE: loplugin:staticmethodsTor Lillqvist
Change-Id: I2dd4ace6d884ba59820814e23a8e55d9b0e60ef6
2015-10-14fix build against glib < 2.36 (w/o gmenu) againBjoern Michaelsen
Change-Id: I01a76e0cf19e11609a2f414bf754f3034b298b2d
2015-10-14fix build against glib < 2.36 (w/o gmenu)Bjoern Michaelsen
Change-Id: Ia60195d48717dc87c8a8a5753477604cbdd0c79e
2015-10-14bring Unity menues to gtk3 tooBjoern Michaelsen
Change-Id: I4eb9f4bf423febce89635654c0cf1199b79d6fb8
2015-10-14Bump gtk+ version to 2.18Riccardo Magliocchetti
2.18 is the version available in RHEL 6 released in 2010. Change-Id: I4cd4fc89f6b51e6f58ca72b8182f80316b1f4f88 Reviewed-on: https://gerrit.libreoffice.org/19330 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-10-14Allow non ASCII chars as accelerator part 2Niklas Johansson
This is a follow up patch to the commit: b80be50268f534e215d36d69b93d3f51d9410ace This takes care of exposing non ascii characters to atk so that the orca screen reader has a chance to present these characters to it's users. I was considering removing the KeyCode bits all toghether and rely on what we get from KeyChar but got cold feet in the end. Change-Id: I7a3e78c47b81f8b36763c56e0298e8bbf226dccf Reviewed-on: https://gerrit.libreoffice.org/19105 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12Replace "SAL_DELETED_FUNCTION" with "= delete" in LIBO_INTERNAL_ONLY codeStephan Bergmann
Change-Id: I328ac7a95ccc87732efae48b567a0556865928f3
2015-10-09clang-analyzer-deadcode.DeadStoresStephan Bergmann
Change-Id: I54691786167fd17b115460f3329573f0c2f023ed
2015-10-09clang-analyzer-deadcode.DeadStoresStephan Bergmann
Change-Id: I97db1e22a42e25186be0d7304b9f2a5204fc1c83
2015-10-09clang-analyzer-deadcode.DeadStoresStephan Bergmann
Change-Id: I9329233a85df26dcfd83002e50604a6ea4fb50f9
2015-10-09clang-analyzer-deadcode.DeadStoresStephan Bergmann
Change-Id: Ic3464a466302b87fae70a63f2723d1355eccab6f
2015-10-09fix KDE3 buildNoel Grandin
after my commit 0e30af6fdc496ee1b935d68e979aa63729cef878 "convert SAL_FRAME_STYLE to scoped enum" Change-Id: Iefa1b9a39a50ea09fb6a2615196a8adcea40df0d
2015-10-07loplugin:mergeclassesNoel Grandin
Change-Id: If8fabc79f4cbef6fc0d164bbe2f6136f1d1f00af
2015-10-06loplugin:unusedmethodsNoel Grandin
Change-Id: I150baadc442e57ee604563bc52965daa9d2e41af
2015-10-05opengl: cache Spinbox native widget texturesTomaž Vajngerl
Change-Id: Ib3e99ce36f3f0c855d2932038776f62f2d47f50c
2015-10-05fix KDE4 buildNoel Grandin
Change-Id: I1be5448074bd763dd6a68d33dc2c6a1b1adc57d9
2015-10-05fix KDE4 buildNoel Grandin
Change-Id: Idb101b5b5d40b6a1a54acda81be5a5f2c09722bb
2015-10-05convert SAL_FRAME_STYLE to scoped enumNoel Grandin
Change-Id: Ic3f7fddcea36c18ffe43c4c633d415f596a58cbc Reviewed-on: https://gerrit.libreoffice.org/19094 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-02loplugin:unusedmethods in vclNoel Grandin
Change-Id: Ib404310761fd555b033ab6594ba8636d37f23463 Reviewed-on: https://gerrit.libreoffice.org/19074 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-01tdf#39080 Interactive hide-whitespace modeAshod Nakashian
Support for enabling and disabling hide-whitespace by clicking between page frames. Disabled header and footer decorators when hide-whitepsace is enabled, and page size is trimmed to the contents of each page. Experimental/suggestive mouse pointers added but only tested on Windows. Change-Id: Ia2faeeda9e3e783ffaf5340aa69303a4218892a7 Reviewed-on: https://gerrit.libreoffice.org/18156 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-30Fix typosAndrea Gelmini
Change-Id: I2cf36eb80068adcf57238a286f09bdc96b4e01f8 Reviewed-on: https://gerrit.libreoffice.org/18994 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-29Fix typosAndrea Gelmini
Change-Id: I4525b43fa823d743b86bf4136c56af35274085e6 Reviewed-on: https://gerrit.libreoffice.org/18995 Reviewed-by: Joren De Cuyper <jorendc@libreoffice.org> Tested-by: Joren De Cuyper <jorendc@libreoffice.org>
2015-09-29vcl: replace alloca() with std::unique_ptrMichael Stahl
Change-Id: I82b982895ee422bcf5a23756df4d81c89bc47636
2015-09-29remove unused #include <sal/alloca.h>Michael Stahl
Change-Id: I490841fd2c526e4ca6d6c94cc7b9dba318c932a1
2015-09-29retain type for another levelCaolán McNamara
Change-Id: I4017e5404c99d37b36988f1d7a8ce17e42010070 Reviewed-on: https://gerrit.libreoffice.org/18913 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-29coverity#1325061 Resource leakCaolán McNamara
Change-Id: If680e1f9236ab6c1eb43f3d234cf36ef00442079
2015-09-28loplugin:staticmethodsStephan Bergmann
Change-Id: I58baa20b852bda3160f23f43a751404248244348
2015-09-21tdf#94275: core dump when XKeysymToString returns NULLJulien Nabet
0 strlen () at ../sysdeps/x86_64/strlen.S:106 1 0x00007fffdfd69083 in SalDisplay::GetKeyNameFromKeySym (this=this@entry=0x1121b30, nKeySym=<optimised out>) at /build/libreoffice-Ke3JzN/libreoffice-5.0.1~rc2/vcl/unx/generic/app/saldisp.cxx:744 2 0x00007fffdfd696f5 in SalDisplay::GetKeyName (this=0x1121b30, nKeyCode=nKeyCode@entry=9476) at /build/libreoffice-Ke3JzN/libreoffice-5.0.1~rc2/vcl/unx/generic/app/saldisp.cxx:798 3 0x00007fffe17892a2 in GtkSalFrame::GetKeyName (this=<optimised out>, nKeyCode=<optimised out>) at /build/libreoffice-Ke3JzN/libreoffice-5.0.1~rc2/vcl/unx/gtk/window/gtksalframe.cxx:3005 4 0x00007ffff6125bbc in vcl::KeyCode::GetName (this=this@entry=0x7fffffffbfb0, pWindow=<optimised out>, pWindow@entry=0x0) at /build/libreoffice-Ke3JzN/libreoffice-5.0.1~rc2/vcl/source/window/keycod.cxx:108 Thank you Alex Bennée for having noticed this. Change-Id: I4fa89241c72144d5c76cd6175368c6878fc57a46 Reviewed-on: https://gerrit.libreoffice.org/18708 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-21convert Link<> to typedNoel Grandin
Change-Id: If3e2b00092440ebd42ae5b73ae2b0e44c3702683
2015-09-20convert Link<> to typedNoel Grandin
Change-Id: I86bf78c69251b5cd4d18edf3542e70eb2e8f32e1 Reviewed-on: https://gerrit.libreoffice.org/18699 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-17make CalcMaskShift a verifiable operationCaolán McNamara
and check it on untrusted data Change-Id: I7c97a27d70f91b9686adf9dcb8b68c5aa25c2b4c Reviewed-on: https://gerrit.libreoffice.org/18637 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-16GL paint-flushing guard re-work.Michael Meeks
Unfortunately, since we can have 2x SalGraphics' on a OutputDevice, and one of these can be a printer - things got very confused around which context to glFlush. This de-tangles the various reference-counts. Change-Id: I1062be0b02a91fc9009deaa3ec29c5dbb227df20 Reviewed-on: https://gerrit.libreoffice.org/18604 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-09-16Blind fix for --enable-tdeStephan Bergmann
Change-Id: I6e60bf537ffc91210862ba77ffefa933e90ed84f
2015-09-16clean up VclEventListeners and VclEventListeners2Noel Grandin
Move them inside the vcl module. there is no need to expose their implementation. Make the VclEventListeners2 implementation similar to the VclEventListeners implemenation - I can't see the benefit of this extra complication with invalidated iterators, given the very small number of listeners typically on such a list. Change-Id: I040ddd24b10d2109af13ee25b5181703af17a109