summaryrefslogtreecommitdiff
path: root/vcl/unx
AgeCommit message (Collapse)Author
2013-04-25drop duplicated warningCaolán McNamara
Change-Id: Ied358faaf6ba1aecae4f61ff56e639752a2de664
2013-04-25Related: fdo#63802Caolán McNamara
let si-phonetic-dynamic survive libreoffice losing focus and regain it cycle and still use surrounding text. It should be safe to report that we can provide surrounding text but there isn't any during the time window when there is no focus window, because the focus in event was received but it hasn't arrived yet because that happens on a postuserevent. Change-Id: I0481c42208953f2a0618aaed7b0d9e9f3e7bda07
2013-04-25Resolves: fdo#63802 return true if we have known empty contextCaolán McNamara
i.e. false for "we can't provide context", and true for "we can provide context, even if there isn't any" Still looks to me that there's a bug in the si-phonetic-dynamic im (or something in the stack) that assumes that returning false once means it will always return false and give up for ever fix indent while I'm at it Change-Id: I6df7f2689101250c33318db1fac5ec1b3e340566
2013-04-22rhbz#954991 Avoid static data (causing trouble at exit)Stephan Bergmann
Change-Id: Ifc8275276811ba24b62f93096e7cb98a5dbf658c
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks
2013-04-20fdo#63154: Change Min/Max/Abs for std::min/max/absMarcos Paulo de Souza
Now all these usages were removed from LO. Change-Id: I8a7233db20abdcdbb18428ad4004c78cc516a0e6 Reviewed-on: https://gerrit.libreoffice.org/3326 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-19lp#1085169: we overactivate here, as it does not seem to hurtBjoern Michaelsen
Change-Id: I4f6e76347c5c9b5c67a09b8c3dcd1b1708e8e703
2013-04-18Related: rhbz#761009 lp#766153 lp#892904 HandleFontOptions crashCaolán McNamara
The mpServerFont member of a ImplServerFontEntry must not be deleted while the ImplServerFontEntry still exists see also 39cbce553da1834f78b77f48b2f1be9578d6cc05 for another reason a crash in the same place can happen. Its impossible from traces in crashes before 39cbce553da1834f78b77f48b2f1be9578d6cc05 was fixed to distinguish those crashes from this crash. This crash is a regression due to 7a416820ab5e03f8b988656e0f6a592cb1e81d07 where we went from modifying pServerFont in X11SalGraphics::setFont directly to modifying it/a-different-one indirectly via ImplServerFontEntry The various font caches and font thing lifecycles of LibreOffice are somewhat confusing. This crash had eluded me for years, to reproduce: insert->special chars->select a font with loads of glyphs, i.e. "AR PL UKai CN" click on the first row of glyphs and hold down page-down until you hit the bottom, then page-up until you hit the top. Pre patch it won't survive the whole down+up (and valgrind will moan quite a bit) Change-Id: Ifde0cb375f487c556b04a640d77765a7dc2f0913
2013-04-17Adapt to gtkframe -> gtksalframe renameStephan Bergmann
Change-Id: I2a464208081b42a577aafbe321d9662007208d77
2013-04-17some more debug infoBjoern Michaelsen
Change-Id: Icabdaab665ac969c9ba6240d2e825d1e62776249
2013-04-17move gtkframe to gtksalframe to match class nameBjoern Michaelsen
2013-04-17fdo#62096 - replace some O(U)String compareTo with ==Artur Dryomov
Change-Id: I98d04d7da4c2b7ea0b769df9c2bfa8c1ad86bf2d Reviewed-on: https://gerrit.libreoffice.org/3422 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-04-16Move {pre,post}x.h to where {pre,post}mac.h and {pre,post}win.h areTor Lillqvist
Change-Id: I561aa6cc1de7ed6128d25c82cd493d5d5718e052
2013-04-12fdo#60690 - Remove all calls t GTK_YIELD_GRAB because it does nothing.vjinoch
Change-Id: I76e76ec5fc85d8e1fd673a45b3e54163ca7643f3
2013-04-12fix embarassing mess up around gtk+ version detection.Michael Meeks
Change-Id: I5a24235f5bb6791f64ba752b01cf185e7a7287cb
2013-04-12fdo#60690 - a little more cleanup of gtk+ mutex bits.Michael Meeks
Change-Id: I020d6f59751aef0bfb06667317ddcaf2965395d1
2013-04-12-Werror=unusedStephan Bergmann
Change-Id: Icab9990a1e4bcbd709f63cb5ef24358441cced8d
2013-04-12Remove GtkHookedYieldMutex and some small changes.vjinoch
Change-Id: Id84a5eaa4cea4c7cce9aa873c1a7c286e5d5cc92 Reviewed-on: https://gerrit.libreoffice.org/3349 Reviewed-by: Michael Meeks <michael.meeks@suse.com> Tested-by: Michael Meeks <michael.meeks@suse.com>
2013-04-12Remove code marked by HORRIBLE_OBSOLETE_YIELDMUTEX_IMPL tag.vjinoch
Change-Id: Ib87e3a5155176a6ce0531e04b08a2731a9c956a7 Reviewed-on: https://gerrit.libreoffice.org/3289 Reviewed-by: Michael Meeks <michael.meeks@suse.com> Tested-by: Michael Meeks <michael.meeks@suse.com>
2013-04-10vcl/inc/unx/Xproto.h seems pointlessTor Lillqvist
Change-Id: I22405b5d3416be28e677d7a383e8101bd6f15559
2013-04-10Minor refactoring: Move a function to the only file where it is usedTor Lillqvist
Change-Id: I98f1eda871eb36cdf61e003d046395698dcdad18
2013-04-10Bin a local X11 wrapper header, vcl/inc/unx/salstd.hxxTor Lillqvist
We already have <tools/prex.h> and <tools/postx.h>, so make those be sufficient instead. Bin another local vcl header vcl/inc/unx/svunx.h that just included those prex.h and postx.h. Adapt includers accordingly. Change-Id: I6638b3260fd3da45478fcc216b41f8c8a539f0d7
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-05new module i18nlangtagEike Rathke
Moved portions from module i18npool, all of former i18nisolang1 library that now is i18nlangtag. Included are languagetag, isolang and mslangid. This i18nlangtag code is now even used by module comphelper, so disentangling i18npool and making this an own module was needed to not create circular module dependencies. Change-Id: Ib887c3d6dde667403fd22d382310ba5f1a9b0015
2013-04-03fdo#58807 bring Beep() for basic backThomas Arnhold
The functionality was removed by fdo#48549. This partially reverts 0f6101cfef4c2e45d9f1f1b3a61ef94799e4526b 0bdf6fc7c71c4c49e6d6f83d56ac953272ad16d5 85cb9084533605657aca0394afe4516058a8e4ef I changed the behavior to always beep, because only the basic macro function is using Beep(). Looks like the Beep macro function didn't even work correctly before the removal, because the default was to not beep for most platforms. So I set the volume from disable (0) to 50% for XBell(). Change-Id: I663ffb7af75d2fd6d2c1f94073e4412d9744de4a Reviewed-on: https://gerrit.libreoffice.org/3124 Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com>
2013-04-02vcl: don't try to dlopen kde plugins when kde support is disabledMiklos Vajna
Change-Id: I01e19a9c7345e4a3489377ccb38c0465f8c88292
2013-04-02vcl: convert some fprintf to SAL_INFOThomas Arnhold
Change-Id: I4b9a20e62e8e137a1bfaa1c654307f15c33e3d3c Reviewed-on: https://gerrit.libreoffice.org/3143 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-31fix vcl with Library_mergedPeter Foley
Change-Id: Ie85ba53c59eda5586b70527a518e3f80223fc49e
2013-03-30fix loplugin warningsPeter Foley
Change-Id: I17593ac6e495213a1ef99d4d5525a6e38aee0bc7
2013-03-28use LanguageTag::getGlibcLocaleString()Eike Rathke
Change-Id: I86a5aad4c1a024861c82d44a3f67a2cbe00e7c2f
2013-03-27-Wunused-macrosStephan Bergmann
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-27Unused Region macro definitionsStephan Bergmann
In other files in vcl/unx/kde4/, those defines are apparently needed to resolve a clash between class Region from vcl/region.hxx and typedef Region from /usr/include/QtGui/qwindowdefs.h. But in these two files those two clashing headers appear not to be included both, so the define would be flagged by -Wunused-macros. Change-Id: Ib5bb62867dd3b3ea4c0a9f4b461efcecd92bc4b7
2013-03-27No need for two sets of names for the same exttextinput flag bitsTor Lillqvist
Change-Id: Ic5756d75bc86795a7add95694aef6fc9d1f6b9fa
2013-03-27No need for two sets of names for the same frame/window state bitsTor Lillqvist
Bin the SAL_FRAMESTATE_* defines which as the comment said had to be the same as the WINDOWSTATE_*] in syswin.hxx. Change-Id: I42fcd91db543821f007038e558872ba8f69e4a78
2013-03-26fixed out of bounds substring accessEike Rathke
assuming is not good enough ... Change-Id: Icd4f090fe94797ecf7e968855df3bb62609037c1
2013-03-21Fix force-choosing gtk3 backend.Thorsten Behrens
Extra parameter got lost in refactoring, if we set envvar, we *do* want to try that backend. Change-Id: Ib530a3a6b3e6ee33aab729ce7cd1f93e209d4513
2013-03-20fdo#39468 German comments in vcl/unx/generic/...Christian M. Heller
Change-Id: I869f5ac346b378ee63832e01ce099f366b7c184f Reviewed-on: https://gerrit.libreoffice.org/2865 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-20use #if instead of #ifdef for testing config_xxx.hxx macrosLuboš Luňák
http://lists.freedesktop.org/archives/libreoffice/2013-March/047769.html Change-Id: I81ed4500878ff3193e028410a1f0205e28d17fc3
2013-03-19handle the empty URL case in file pickerGergő Mocsi
Some extensions in the wild, for example Impress Photo Album Creator, manage to call the file picker dialog with an empty URL. The resulting error message is not very helpful: "Operation not supported" dialog. Therefore we assign a default URL when empty URL is passed. Change-Id: Icf71142411a79e1fe2d1d5918d2a400b174acc00 Reviewed-on: https://gerrit.libreoffice.org/2390 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2013-03-19further OUString cleanupThomas Arnhold
Change-Id: I19954ee5976cb881a5fe73a889c8e04a19b14eb6
2013-03-19removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarationsThomas Arnhold
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b Reviewed-on: https://gerrit.libreoffice.org/2835 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19Simplify equalsIgnoreAsciiCaseAscii[L] callsStephan Bergmann
Change-Id: If5201bd772aed245e8f7f8b900d76ffe4ca57b49
2013-03-19automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold
Done with a perl regex: s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec Reviewed-on: https://gerrit.libreoffice.org/2832 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-18Cppcheck: Variables reassigned before the old one has been useJulien Nabet
See http://nabble.documentfoundation.org/cppcheck-Variables-reassigned-before-the-old-one-has-been-used-vcl-kde4-part-td4044235.html Change-Id: I9ce272c4116395a95a09e5633acfeaa5b1edbe12
2013-03-18change #ifdef -> #if for KDE4 feature macrosLuboš Luňák
Change-Id: I289744eaa62ad819620f0b31a54efd5ebbdb9dc2
2013-03-16Bin some pointless comments and ASCII graphicsTor Lillqvist
Change-Id: Ib7b176eb1889ebd94d4b628899011de9ebbb3dbd
2013-03-16Fix buildFridrich Štrba
Change-Id: I7e0b7be9da04ff6055075b5c046f02c967bf59f2
2013-03-15Related: rhbz#906137 g_module_symbol returned nothingCaolán McNamara
for gdk_screen_get_primary_monitor but osl_getAsciiFunctionSymbol does the right thing Change-Id: Ibf1a17724a9393d95c4fbe0d26aa82148eea33a9
2013-03-15Resolves: rhbz#906137 slide show inverts outputsCaolán McNamara
we go to some effort to determine the right value of ret and then throw it away and return 0 regression since 4a7e3482912c90b73d6e12c82bcd9ce31975e3f1 Change-Id: I652cfbe44fdab6560c1c8dc8fe25d6211b5357cb
2013-03-14Remove some accidental merge by-products.Thorsten Behrens
Change-Id: Ic04832bf95fd425f839bd4f6a1390959f3c82247