summaryrefslogtreecommitdiff
path: root/vcl/unx
AgeCommit message (Collapse)AuthorFilesLines
2015-08-18tdf#832525 - Wrong punctuation direction after Chinese characters inMark Hung1-1/+1
vertical layout. Change-Id: I6391e665db205545f0d660e3de826755c954f286 Reviewed-on: https://gerrit.libreoffice.org/17836 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-08-18Remove mention of long-gone vnd.sun.star.wfsStephan Bergmann1-1/+1
Change-Id: I534da08398504697aa4ecff7838c6bd702dc8ea0
2015-08-17Fix GTK3 right-to-left renderingKhaled Hosny1-7/+23
* Reverse the direction of arrows e.g. in menus * Reverse the position of combobox button They are lumped together because fixing one breaks the other Change-Id: I65afb08785e67db72a72ad39f1de56db037b640a Reviewed-on: https://gerrit.libreoffice.org/17788 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-13rhbz#1247588: Hold UNO objects by css::uno::ReferenceStephan Bergmann17-338/+348
...instead of raw pointer and manual acquire/relase. It is unclear to me why the original code thought it was necessary (or merely "better") to hold by raw pointer; but at least from the backtrace in rhbz#1247588, it seems plausible that UNO method calls through such raw pointers could recursively call into atk_object_wrapper_dispose and make the raw pointer stale. Change-Id: Idc0a4f9e2f7ffe610261c1b7b98ce9c5e040db43
2015-08-13Remove #ifdef ENABLE_TRACING codeStephan Bergmann5-216/+0
...assumming nobody actively uses it for debugging anymore, anyway Change-Id: I097c0cca791a48844550be4c326fa2483a3df231
2015-08-11loplugin: defaultparamsNoel Grandin1-2/+2
Change-Id: I79a889c68e91712d2abdacc559c78813f730e623
2015-08-08gtk3: name CLIPBOARD and PRIMARY with different namesCaolán McNamara1-1/+1
Change-Id: I4b8f36931f7ee19fe774a735a6d36ecd91de47ef
2015-08-07gtk3: it was pointed out to me we have up and down reversedCaolán McNamara1-2/+2
by jrb, oops Change-Id: Id722533edae72d4849129e339bd6cca265d3c35c Reviewed-on: https://gerrit.libreoffice.org/17577 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-08-07Resolves: tdf#93198 gtk3: support PRIMARY as well as CLIPBOARDCaolán McNamara1-16/+19
Change-Id: Ia8c7da1e321f363efee2d60b29078b35fcbe1dcd Reviewed-on: https://gerrit.libreoffice.org/17570 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-08-05attach gestures to event widget instead of toplevelCaolán McNamara1-4/+4
Change-Id: Id0658cf561570a2ae15fb7fd603e6437da9cfaf2
2015-08-05don't map GDK_KEY_RELEASE to keyboard events, tdf#92996Markus Mohrhard1-1/+1
This was only done in the new gtk3 backend, all other backends seem to ignore the GDK_KEY_RELEASE event (especially the gtk2 one). So make the gtk3 backend code consistent with the other backends. Change-Id: I3bdecb7ce05190ee2496bc552ca79375fb6fd713 Reviewed-on: https://gerrit.libreoffice.org/17431 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-08-03inline some use-once typedefsNoel Grandin1-3/+2
Change-Id: I02cbbba56a2ad83e0ac3d806265a7e0d6a29594d Reviewed-on: https://gerrit.libreoffice.org/17495 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-08-01valgrind: memleakCaolán McNamara1-3/+3
Change-Id: Ie2a42162d3092a8213b8532d9325f4ed199ec2a4
2015-07-31tdf#92903 KDE4: fix listbox regression from 92115Jan-Marek Glogowski1-11/+9
So at least in case of the CTRL_LISTBOX, getNativeControlRegion is called for a type and part unsupported by IsNativeControlSupported. For whatever reason, this results in broken listboxes drawn in Base's "Table Design" dialog, when selecting "field type", which draws the listbox on top of the cell. To make it worse, it seems the listbox is actually drawn to a smaller space then the actual requirement. Appearently it seems to use the content rect, instead of the bounding rect. So in addition to fixing the drawing, this patch increases the listbox bounding rect, which looks too large in normal dialogs, but makes the Base's listbox better readable. Change-Id: I112ec038fd20ad33facd260d16b5d68b508d2bd0 Reviewed-on: https://gerrit.libreoffice.org/17438 Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de> Tested-by: Katarina Behrens <Katarina.Behrens@cib.de>
2015-07-30tdf#92765: Show the real icon instead of a black square with gtk vclplug.Jan Holesovsky1-4/+9
This partially brings back the behavior before 10a3db37377a68ec7529bbfbf876c852d58b7ae4. Change-Id: I5b372ab56105c05dda6ecb9aa1eed1c6a0c72ea8
2015-07-28Avoid uncommon C++ style of forward declaration combined with its useTor Lillqvist1-1/+2
Change-Id: I870821ec64653391caf516cbd3aa890637d7dd24 Reviewed-on: https://gerrit.libreoffice.org/17367 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-24gtk3: connect to the eventbox and not toplevel for mouse eventsCaolán McNamara1-4/+24
this leaves whatever magic gtk3 under wayland is doing on the toplevel alone so the window can be resized and the title bar responds to clicks as expected Change-Id: I9952cb719f3148660e17951b4f66a2525e11a6df
2015-07-24gtk3: insert an event box between toplevel and contentsCaolán McNamara2-5/+38
Change-Id: Ic78aa62baaa4260645a80ffb6704103440339595
2015-07-24gtk3: draw/paint to the fixed containerCaolán McNamara1-17/+18
which fills the toplevel window, rather than directly to the toplevel window. It makes no difference for X, but for wayland the window decorations are part of the toplevel window, dropping down a level means we don't draw out menu bar under the window decoration space Change-Id: Icec400efacd16b5d901107c13b6fa90c59cad0e6
2015-07-24fixed crashSzymon Kłos1-7/+10
While opening folders in SvtFileView using doubleclick, sometimes GtkSalFrame::gestureLongPress method is executed with a null frame pointer and LO crashes. I noticed this only with remote dirs, probably this bug occurs only when the doubleclick handler routine takes a lot of time. Change-Id: I432046994b3e1662bd7e499681bd20e9696b2d52
2015-07-24tdf#92018 cache native controls for X11 OpenGL backend (for now)Tomaž Vajngerl4-8/+46
Change-Id: I85c7cc01113bc4ac810c450a6460059463cc8e03
2015-07-23Resolves: tdf#92689 grab keyboard focus to parent, not to earlier generationsCaolán McNamara1-6/+2
Change-Id: I4c95f52f0b22ab574f608b93c172e0398e81974b
2015-07-23inline a handful of use-once #definesNoel Grandin6-11/+5
Change-Id: Id2654555c4042f8c0bdbd6bab6507e705f08326b
2015-07-22gtk3: native focus rects are fine for flat buttonsCaolán McNamara1-0/+1
Change-Id: I6a70696cd119e681b4850c624c9e4ff28312c152
2015-07-21use 3,0,0 rather than 3,10,0Caolán McNamara1-1/+1
Change-Id: I810cdadedd5261caede474a4780ceea6d9b409c9
2015-07-20fix linux buildbotNoel Grandin1-1/+1
the GTK3 version check for the GDK_IS_X11_DISPLAY macro does not appear to work well on all the machines Change-Id: I7020afdca1b270f89910753737c2c70b61453b34
2015-07-17WaE: unused macroCaolán McNamara1-1/+0
Change-Id: Ic7112f9bdd638ad72758e1b187778d004df4dd7b
2015-07-17wayland: actually show somethingCaolán McNamara2-2/+11
Change-Id: Icd081c38de1374c6bfd6fb04d7765e07ff5d1aff
2015-07-17presumably XSetIOErrorHandler is meaningless on waylandCaolán McNamara1-5/+17
Change-Id: I72247a38021b11a521d785f7565c218a425a857f
2015-07-17move all the X foo of desktop detection in the fallback pathCaolán McNamara1-57/+59
Change-Id: I53e2634984c8e08b707dc3a21b2a6e68b48ec701
2015-07-17add gnome-wayland alongside gnomeCaolán McNamara1-0/+4
Change-Id: I5d57f715edbadc7fef5c508cae7e98bcde0e4e5c
2015-07-17force a specific DPI with SAL_FORCEDPI (GTK2 & GTK3 backends only)Tomaž Vajngerl2-0/+16
Change-Id: I2c154e4df060ade36744c6aa2fbffa8c6e665629
2015-07-17GTK3 HiDPI: disable window scaling and get display DPI via GTK3Tomaž Vajngerl2-0/+37
Change-Id: I66b92146757352408a331f9e23289839f443ff79
2015-07-15getFiles refactoring: kde4 partJulien Nabet1-9/+7
before: getFiles retrieves all files with their url getSelectedFiles just returns getFiles result after: getSelectedFiles retrieves all files with their url getFiles uses getSelectedFiles and truncates to 1 entry if necessary See http://nabble.documentfoundation.org/Dev-f1639786.html for discussion Conflicts: vcl/unx/kde4/KDE4FilePicker.cxx Change-Id: I56a0e2bc877f93e28f08d5ebaafd1826a92cef8b Reviewed-on: https://gerrit.libreoffice.org/17025 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-07-13Resolves: tdf#92671 union each monitor workarea to find best screen workareaCaolán McNamara1-4/+10
Change-Id: Ia77063f7008f960373861b8b59710abe9918865c
2015-07-13Broken codeStephan Bergmann1-1/+1
...from d11b244bf9b9115f5384d6ff43bdffc7f1289d71 "getFiles: truncate to 1 file only" Change-Id: I149489212db943f79dfda7f1012d22809f090851
2015-07-13getFiles: truncate to 1 file onlyJulien Nabet1-3/+6
See http://nabble.documentfoundation.org/Multiselection-needs-work-td4153207.html for details Change-Id: I7f855a067349381e2567bd15a8daa56aad412774 Reviewed-on: https://gerrit.libreoffice.org/16959 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-11Blind fix for kdeJulien Nabet1-0/+2
/home/tinderbox/master/vcl/unx/kde/salnativewidgets-kde.cxx:1987:88: error: implicit instantiation of undefined template ´boost::optional<Color>´ aStyleSettings.SetMenuBarTextColor( aStyleSettings.GetPersonaMenuBarTextColor().get_value_or( aMenuFore ) ); /home/tinderbox/master/include/vcl/settings.hxx:38:32: note: template is declared here template<typename T> class optional; Change-Id: Ic681d36f376f7433dae56fc1da5f8a2dd0f597ea
2015-07-10vcl: remove boost/signal2/signal.hpp from headerMichael Stahl1-0/+2
The most relevant signal member function appears to be connect(), so let's create a wrapper function for that now, without the more esoteric ordering features for now. Move the signal member itself to a new pImpl. The benefits are worth it: preprocessor input reduced by 2.8GB, that's 9% of the total (excluding system headers which are not counted because they don't generate dependencies). Change-Id: I0aaeda51a5630a348bb12c81a83f67afbd508a14
2015-07-10vcl: forward declare boost::optional in settings.hxxMichael Stahl3-0/+7
... for 1134 fewer uses of optional.hpp and a saving of 673 MB of preprocessor input. Change-Id: I9e8020f3e1ae968db403174c1bc0c1eba1139ecb
2015-07-10fix assert when pasting nil clipboard contentEike Rathke1-2/+3
This happened when one of our modules had clipboard content and was closed, which currently clears the clipboard, and then reopened and attempting to paste the content. Apparently the utf-16 mime-type is still alive but the content isn't, on which rtl_str_getLength(pText) asserts. Change-Id: I5cc7c20ac1f1a8551a10b033e1f37bf83c5cc202
2015-07-10tdf#92670 GtkSalGraphics::NWPaintGTKMenubar: fix modified clip rectangleMiklos Vajna1-4/+14
Happens only with when double buffering is enabled, and e.g. with the oxygen GTK2 theme, but not with the default one. Change-Id: Iad9911121e57388c84c25860413763f75e06b0ea
2015-07-10loplugin:unusedmethods vcl(part2)Noel Grandin3-131/+0
Change-Id: I12356b3fdce68282a30cae2b270b02e46558860a Reviewed-on: https://gerrit.libreoffice.org/16847 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-09tdf#92115 KDE4: better listbox themingJan-Marek Glogowski1-19/+41
This is not a final fix to apply full theming, but it makes the listboxes at least usable again. Change-Id: Ic83b8209208fddafe34e04f4e5e531f0d28e62bd
2015-07-09tdf#92110 KDE4: cleanup IsNativeControlSupportedJan-Marek Glogowski1-43/+34
Be (more) correct about the widgets and parts, we actually can draw natively in KDE4. Also add an assert, so drawNativeControl won't be called with values not supported by IsNativeControlSupported. Change-Id: Iac6c78194191a9cd059ace560c285263ce7c1045
2015-07-09tdf#92630 Enable auto-accelerator behaviour for gtkSimon Long3-1/+12
Change-Id: I671177dd1f9e535c28a29bcbd6b74f1c789371ea Reviewed-on: https://gerrit.libreoffice.org/16883 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-07-09tdf#92517 KDE4-FileDialog: "Save as" has wrong FilterJuergen Funk2-3/+8
Fixing follow - The order of calling: first should be set the filter, after that can be set the current filter - change the function from "setCurrentFilter" to "setCurrentItem" When you set the filter over "setCurrentFilter" you need the full search string "extention|description" e.g. "*.docx|Microsoft Word.." - Not need the escape of slash (with that can not find "Microsoft Word 2007/2010 XML (.docx))" Change-Id: Ie4f7d6fd619b391487ee944c3e745c855600ee54 Reviewed-on: https://gerrit.libreoffice.org/16721 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2015-07-09tdf#92243 Read menu highlight text colour correctly from GTK themeSimon Long1-5/+3
Change-Id: Iade050c8504a1cc65b5ac345141da32898e7ebff Reviewed-on: https://gerrit.libreoffice.org/16887 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-07-09Gaps at end of menu separator lines read from GTK theme.spl1-1/+6
Change-Id: I3c42d918680ac989c5cd7cd1022e4a6e7b53aa11 Reviewed-on: https://gerrit.libreoffice.org/16886 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-07-08vcl: use SAL_INFO for available X11 clipboard formatsMichael Stahl1-4/+2
Change-Id: Ifbd87e59fa91241dd5852f7dc6b63e65d8ca6bad