summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2021-05-25gtk4: enable some more working dialogsCaolán McNamara
Change-Id: Ia6c5137ca09629919d593f636eaebb5a28a1aa05 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116095 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-25gtk[3|4] finish rename to immobilizedCaolán McNamara
Change-Id: I829ad504b791894259b94c8d015795a0dedce449 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116088 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-25Fix typoAndrea Gelmini
Change-Id: Ie75d4521aabc42cc57cccec5f77ec9147aca180d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116074 Tested-by: Jenkins Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
2021-05-24gtk4: restore collapse/undo_collapse for calc cell reference dialogsCaolán McNamara
hide the entire titlebar for now, maybe we should just hide the action widgets and keep the titlebar. Change-Id: I81667ac0d5edbf4f5c7e12909672fa0de84c059a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116071 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24gtk4: reenable some working simple calc dialogsCaolán McNamara
Change-Id: I328d5b36dbc0a856cbad21cc57c37d3600072875 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116070 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24gtk4: restore IconViewCaolán McNamara
sans popup-menu for now Change-Id: I5708b8f11d8ee50bba974174a2e3cfdb128d0486 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116068 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24no need for an image-position if the button only has an imageCaolán McNamara
and no text for the image to be relative to Change-Id: Ic06dfe6451708590d08a3d2b6821f68a67048de7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116065 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24gtk4: always transform internal-child GtkButtonBox to GtkHeaderBarCaolán McNamara
except for GtkMessageDialog ones Change-Id: I7bb1ff1533ebc07872342fdf632f5a950bf73d88 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116064 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24gtk4: transform GtkScrolledWindow shadow-type to has-frameCaolán McNamara
Change-Id: Ib9970bad9fbf32def0bcea6ffde42e4204dd4a06 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116063 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24gtk4: make opengl slide transitions work againCaolán McNamara
Change-Id: Id64d8759d1c98a973445f52ccfc5df9f0e084743 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116060 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24gtk4: restore GtkFixed container for SalObjectsCaolán McNamara
put the DrawingArea into an Overlay so the overlay will take the size of the DrawingArea. Put a GtkFixed into that overlay which will then also mirror the size of the DrawingArea. Keep that GtkFixed because the SalObject stuff is set up to use a GtkFixed and its just easier to do it this way than use the overlay directly. Change-Id: I937b3740fd809660ee0edef56d5cf036f2503892 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116059 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24gtk[3|4] separate the idea of a drawing widget and a container widgetCaolán McNamara
which were the same thing in gtk3, lets try an overlay for now as the gtk4 container Change-Id: Id368ddf5ef80a17453ea7fb5662b23897975d21e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116058 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24gtk[3|4] add a queue_draw to avoid GtkFixed castCaolán McNamara
Change-Id: I093b62f9530b28ae932338163606e78fca5752d4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116057 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24gtk[3|4] wrap gtk_im_context_set_client_[widget|window] variantsCaolán McNamara
Change-Id: I939786e45929ca81dcda479d0fc897f449f890ff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116046 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24gtk[3|4] wrap surface_create_similar_surface variantsCaolán McNamara
Change-Id: Iaa101b1d691fa84693b350460a4c69a1f5aad245 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116045 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24gtk[3|4] wrap gtk_widget_get_window/gtk_native_get_surfaceCaolán McNamara
Change-Id: I21c1cf9ab65e056242f09c8c2bbd84afa9ac42e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116044 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24gtk4: get DrawingArea working enough for tip of the day dialogCaolán McNamara
Change-Id: Ifd2f4029b521d8f513f4fa738e4ce1e59c0ade0a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116042 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24gtk4: background colors have to be solid for themeingCaolán McNamara
Change-Id: I3a644c5674897ef6994d15ec0de614993d65d9d2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116041 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24tdf#142390: fix fatcross cursor on WindowsMike Kaganski
Make it 1-bit cursor resource instead of 32-bit icon; and add it to the appropriate makefile. Change-Id: Icd140f7065f6ec94683e94201d96187f38ab683b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115962 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-05-24add vcl unittests for basic text renderingLuboš Luňák
These just check rendering of one character (normal or vertical) both in horizontal or vertical orientation, and with scaled width. It'd make sense to add more tests, apparently we almost do not have unittests for text rendering. Change-Id: I279314f0e946731dd38261ea030ea42be9fad572 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115621 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2021-05-24fix Skia Windows text renderingLuboš Luňák
This is quite some trial and error, but now it seems all CJK text rendering works properly. I tested tdf#136081, tdf#137907, tdf#103785, tdf#106295, tdf#114209 and tdf#141715. Change-Id: I40e893f66281b0a1a0e814feec3f782ceeb0c535 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115620 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2021-05-24disable AA in Skia/Windows text rendering if asked toLuboš Luňák
Change-Id: I8bff295277c623125d81de7804b43f91f680df4d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115619 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2021-05-24fix font scale width handling for Skia/X11 (tdf#136081)Luboš Luňák
We get width+height, for vertical text width is the font "height". This means we need to use two different fonts, one for "normal" glyphs and one for vertical glyphs. Change-Id: I9d190fc28286055a18c3d5c3ec75515c7c1d4373 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115618 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2021-05-24fix skia/x11 text artifical italicLuboš Luňák
This is supposed to be floating-point division. Also, the 0x6000 value comes from cairo text rendering, but it seems to be too much, 0x4000 visually seems to give a better result (and also avoid clipping in some cases). Change-Id: Idd99c64ba897eed211e227a88a40b06dbdfd5614 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115617 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2021-05-24gtk4: reenable FormattedSpinButtonCaolán McNamara
Change-Id: I16718d614cebc15104a5cde66af238245147e759 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116026 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24gtk4: make generic paste work againCaolán McNamara
Change-Id: Ic78a674f8cb0bf846a5cd90bb1b2cd27c7cb2151 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116025 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24rename m_aMimeTypeToAtom to m_aMimeTypeToGtkTypeCaolán McNamara
Change-Id: I91d1031ec2feb2c434bb7c2fa18e632738a315b0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116024 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24gtk4: make basic text pasting work againCaolán McNamara
Change-Id: I23b029f7accb7ee65f1dfdf1eaa2643faafff14a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116023 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-23gtk4: implement basic text pasteCaolán McNamara
not used yet Change-Id: I7d7877e66976732356ef7541fce33fc9455fdb0b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116020 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-23gtk4: add clipboard_get for differing ways to get clipboardsCaolán McNamara
inch a little closer to cut-and-paste Change-Id: I1e334a0ef4dca274e619376bad8eef7d9caa2cee Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116007 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-22gtk[3|4] there's only two options, 'clipboard' or 'primary'Caolán McNamara
Change-Id: I70d8426a3864551b7632d535864e3639065d0be1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116005 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-22gtk4: reenable TextViewCaolán McNamara
assume for now that old workarounds can remain disabled Change-Id: I64a566985f227db9a2c2d3ef760b4fc324815b2e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116003 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-22gtk4: reenable panedCaolán McNamara
Change-Id: Iccda840da791b38b9a8287492f02348b9036de9d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116002 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-22gtk4: reenable FrameCaolán McNamara
Change-Id: Ic9ce49da26c6ca673ac0980ab32895d8eda8da54 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116001 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-22gtk4: reenable ScrolledWindowCaolán McNamara
Change-Id: I2c6029e46ae18945bd6acfa3fc7552842790d573 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116000 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-22gtk[3|4] get class size from g_type_query of viewport typeCaolán McNamara
Change-Id: I7121159b600b9be6e3b80364ada1f145226c26da Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115999 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-22gtk[3|4] rename to immobilizedCaolán McNamara
Change-Id: I06c8fb88afa7e10b2d03601f52cc2345bb2ab170 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115998 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-22gtk4: reenable CalendarCaolán McNamara
assume for now we don't need the old workarounds Change-Id: I15bc9e562577dd1f9c0395d86cd497835e45aebf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115993 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-22tdf#142061 Add window scaling to XOR emulation on macOSThorsten Wagner
Window scaling for retina displays on macOS has been added to fix tdf#138122 in commit 1a167625314bf36b735176ed488e6ba9b5e9b675 Missing window scaling for XOR emulation is added by this change. Code modified for macOS is moved from quartz/salgidcommon.cxx to osx/salmacos.cxx while original code is copied to ios/salios.cxx to prevent modifications for iOS. Change-Id: Ia8c52f9045379cc37d5aff1279650db0dddee8c0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115816 Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2021-05-22gtk4: use gtk_window_is_active instead of gtk_window_has_toplevel_focusCaolán McNamara
Change-Id: I0ff19754e4a4505a73ece999d16ec981e5616e42 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115982 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-22gtk4: reenable ExpanderCaolán McNamara
assume for now we can drop the older workarounds Change-Id: I75baabcb00addd3cebb5cca8bd472544cd029218 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115944 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-21gtk4: reenable SpinnerCaolán McNamara
Change-Id: I76eae250038e6c7adc927f1dfc9ff5a926716e15 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115943 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-21gtk4: reenable ProgressBarCaolán McNamara
Change-Id: I8bf7de16c81de3cd7a978e2c92c59c50a78bb120 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115942 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-21gtk4: reenable ScaleCaolán McNamara
Change-Id: If9ebeb540a87f81bd48a121ecbf674dd8f636f71 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115941 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-21gtk4: renable LinkButtonCaolán McNamara
Change-Id: Ifdb49a52c08ac78a48aa37c00041b8714bcd0206 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115940 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-21gtk4: reenable ToggleButtonCaolán McNamara
Change-Id: If6458ef0a5ad21532c9aa96ed52779993353b572 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115939 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-21gtk4: reenable CheckButton and RadioButtonCaolán McNamara
Change-Id: I29dc430222bb6dcb44bca0c2f26939a925c69c60 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115787 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-21inherit CheckButton from Widget instead of ButtonCaolán McNamara
seeing as GtkCheckButton no longer supports Button-alike features Change-Id: Ic7c882c68fa2d6d2b5bdd0dcca7d27e4b39daf46 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115934 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-21add Toggleable as a separate thing to a ButtonCaolán McNamara
and inherit ToggleButton from both it and Button Change-Id: If0e500aca8d0ffa087cb5e2bfc1786372fbff4eb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115921 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-21gtk[3|4]: fix infinite toggling in drawCaolán McNamara
regression from... commit 1815aa9472080b9dac263d393b9c922dd16351fe Author: Caolán McNamara <caolanm@redhat.com> Date: Tue May 18 20:44:56 2021 +0100 GtkCheckButton no longer inherits from GtkToggleButton Change-Id: I933c2fb0ea39b0a650ec57031ddcc2b61250d0d4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115915 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>