summaryrefslogtreecommitdiff
path: root/vcl/inc/unx
AgeCommit message (Collapse)Author
2021-08-20VCL allow plugins to declare OpenGL supportJan-Marek Glogowski
... and get rid of the whole GetBackendCapabilities, which was just overkill. Maybe this should even be some bitmap + enum + set/get function, but I'm too lazy... In the end add a bool for the OpenGL support of the VCL plugin (or maybe sticking it into ImplSVData, which is already some catchall for common VCL data). Change-Id: I9f0ececac482d8e2a94ef6024628e9631b49e773 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120760 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2021-08-10gtk4: remove training wheelsCaolán McNamara
Change-Id: Ib52a4cc56fafc23ced1ce4f27d2c69977471d1d2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118491 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-09gtk4: use the FixedContainer overlay for mouse events after allCaolán McNamara
Remove gtk_widget_set_can_target on the overlay so that when we put native gtk widgets into the overlay they get events and can be interacted with. The DrawingArea is 'underneath' the overlay. So just move the mouse event handlers to the overlay itself so we can still appear to interact with the DrawingArea. Change-Id: I43056c5ee6228af85a194c1baa9f83c58b3e389d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118680 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-06gtk4: update GtkSalObjectWidgetClip with new scrolling controllerCaolán McNamara
Change-Id: I729584b71cf8d0a507b97fce96add66fb22508a3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118513 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-02vcl: drop GenericUnixSalDataTypeJan-Marek Glogowski
It's just used for a singke assert and SalData is generally just used as a static cast. Change-Id: I8d74e82e511413d940a3f200f022a9204e588cd7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118288 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2021-06-30tdf#143113 fix crash in dndCaolán McNamara
Change-Id: Ifab741494e4cc6e51ca4cd89b57c3600d80dca44 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118163 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-28loplugin:finalclasses in vclNoel Grandin
Change-Id: I0bad93927248e5d8d19a69661a1b243e55791fd9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117889 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-06-25gtk4 dnd into external appsCaolán McNamara
It's always hard to bootstrap dnd because so much of it has to work before any of it works. Typically dnd and cnp are strongly related so getting cnp working first is the way to go before trying dnd. Change-Id: I645f56dc5f8cb0e3a31e0ff8bbaab610366b6312 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117798 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-24gtk4: track underlying surface state for maximized/minimizedCaolán McNamara
Change-Id: Ia62d12f367555b409cb2a6ed491f65dca34baed3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117784 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-24gtk[3|4] set what widget to highlight during dndCaolán McNamara
Change-Id: Iba808b2f11615a25463c2739e6347f3cc2a91bc2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117770 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-24gtk4: merge some common dnd and cnp blocksCaolán McNamara
Change-Id: I195eb7ae3fda492a36423f57139550cb7fef9b2b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117765 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-24drop text_transfer_result and merge dnd and paste logicCaolán McNamara
Change-Id: Ia91e961d2d94bbd4baeb81647438a4026a4fce60 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117764 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-24gtk4: reuse read_block_async_completed from dnd for cnpCaolán McNamara
Change-Id: I1acfa4c48ee59fd79b4a4b32afa732feef6348c7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117761 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-24gtk4: get dnd drop into LibreOffice from another app workingCaolán McNamara
Change-Id: I9519af009b479e51a3da556f26f3950c4930d618 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117611 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-24rename read_paste_result to read_transfer_resultCaolán McNamara
we'll reuse what worked for clipboard for dnd Change-Id: If8accc2d236253a734f48929e231bcecbb00741f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117744 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-17gtk4: get the cairo_font_options from widget pango_contextCaolán McNamara
in the absence of gdk_screen_get_font_options SalEvent::FontChanged is successfully firing for me on changing hinting in gnome-tweaks font section. Change-Id: I035a07d585b59822b08c801283321ab2582649aa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117393 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-17gtk4: listen to display's setting-changedCaolán McNamara
in the absence of style-updated e.g. changing theme to a dark/light should change the brand image in the start center Change-Id: I7242019069b13093fee1430ade816a48fc0687f3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117390 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-10loplugin:unnecessaryreturn SalX11Display::DispatchNoel Grandin
Change-Id: I270f6538d921ad2116cc29ada3e4543027531764 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116974 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-06-10loplugin:unnecessaryreturn SalFrame::SetPluginParentNoel Grandin
Change-Id: If927a834f5b5d722fc36cce40e161597af6234ca Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116972 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-06-03split .ui conversion code into its own fileCaolán McNamara
Change-Id: Ie27990a497e39ab2fd82a711fa4ec49b472616f6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116677 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-31gtk4: enable cut and paste into other applicationsCaolán McNamara
Change-Id: I9924a9af10532254dc368e274e4a20c6706e4239 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116445 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-31cid#1485136 Structurally dead codeCaolán McNamara
Change-Id: Ic02110bd0e4387ed41b2852cba7d070fb7014bd9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116406 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-30gtk4: inch towards providing clipboard contentCaolán McNamara
inheriting from GdkContentProvider and implementing a replacement get_value like gtk_text_buffer_content looks the way to go. Change-Id: Ic376a586b77b7f00385e5744c0bc2923f2a72c94 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116397 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-27no need to allocate PrintFont separatelyNoel Grandin
Change-Id: I8bc213e096ad6ae83d88c548ff8685a872c5ea91 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116258 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-05-26gtk[3|4] gtk_widget_get_root returns null when no rootCaolán McNamara
unlike gtk_widget_get_toplevel which returns itself if that is the case Change-Id: If977440265bd8ae2c892ee5d52091ebf16ad03cf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116218 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: 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: 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-18loplugin:unusedmethodsNoel Grandin
Change-Id: I8191f4a9eb25b12242354813303fb7d30489d2c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115752 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-05-18tdf#104169 - Change mouse cursor to FatCross in calc spreadsheetSarabjot Singh
Added new cursor FatCross to calc. Change mouse cursor to FatCross while hovering over the spreadsheet in calc instead of earlier Arrow. Co-authored-by: Mesut Çifci <mesutcifci97@gmail.com> Change-Id: I672a058cc702eab0cba6ac953534def915766859 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114679 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2021-05-14gtk[3|4] wrap gtk_style_context_get_color for different num of argsCaolán McNamara
Change-Id: Ib1bc35b2edca9e1e841cec11bc7c0347b983296a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115622 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-13make some classes privateNoel Grandin
Change-Id: I14b2c27a99e76b1141c7a7bd3d0edaf57737bee2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115544 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-05-13gtk4: skip gtk_widget_get_root if pWidget is nullCaolán McNamara
Change-Id: I3ac47e67b1b16728a448ff8341f31c107d38556f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115548 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-12gtk4: add a typedef for different gtk_widget_translate_coordinates arg typeCaolán McNamara
Change-Id: I07c514309d1c687361609818d1d16e808e8b4a56 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115487 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-12gtk4: add widget_get_first_child to wrap gtk_widget_get_first_childCaolán McNamara
and equivalent gtk3 calls Change-Id: Iab6801466d6677ae5a7419470ce3bb32e16e68ac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115486 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-12gtk4: wrap gtk_image_get_icon_name for different version argsCaolán McNamara
Change-Id: I38f2c11309965b08a5c85f543127f3c8b6720e08 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115484 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-12gtk4: enable CreateBuilder but forward to generic one stillCaolán McNamara
Change-Id: Ifba5d0de1606ed238a3e71c4149baf1c97848b1a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115483 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-12gtk4: wrap gtk_widget_get_root vs gtk_widget_get_toplevelCaolán McNamara
Change-Id: I416b157defd927e7c2fa828c5d3b3ba2a5e20c5a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115448 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-12gtk4: wrap gtk_css_provider_load_from_data for arg difference in gtk versionsCaolán McNamara
Change-Id: Iabbf7f6a746efae2ec4abecfb27b4b097ce822ed Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115447 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>