summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk4
AgeCommit message (Collapse)Author
2022-03-08replace member-of in .ui a11y relationsCaolán McNamara
Change-Id: I454c945c5ce17bcc1834923064014b43a0b45be7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131186 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-07gtk4: convert .ui a11y name, desc and labelled-byCaolán McNamara
Change-Id: I3aa380330ccb22fdbc0dc356f1c9c973d14e02c0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131118 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-02-15loplugin:fakeboolStephan Bergmann
("use 'bool' instead of 'gboolean' (aka 'int')") Change-Id: I9a2e830ecf22f65a8313985a07c98d4e92ea5688 Change-Id: I2cf51ce0ad6107339c8ec18592c952c829a7af42 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129951 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-01-25gtk4: GtkSpinButton doesn't have has-frame anymoreCaolán McNamara
Change-Id: If2d230021e7b1e4777e2b663aa835e3917d896d4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128929 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-01-21gtk4: set homogeneous to true to get two equal width buttonsCaolán McNamara
Change-Id: Iff8c9579bbb4758c2bb13b946fafcaf3b9433a84 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128735 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-01-21gtk4: GtkPopover::modal has been renamed to autohideCaolán McNamara
Change-Id: I0ccfbc1284ef85ea276979d3133f30628517200a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128734 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-12-11Fix typosAndrea Gelmini
Change-Id: I8e6db5dfb5285e45f862fadf09ecb4142be6e075 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126659 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins
2021-11-19gtk4: remove constrain-to propertyCaolán McNamara
Change-Id: I18f0b72fff31f555873a0808f171e4c1746a4411 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125539 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-11-16avoid using always-show-arrow in gtk4 < 4.4Caolán McNamara
Change-Id: Ie2df9cd91a5ea857965d24dc669a6c1d94c965a4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125293 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-11-08gtk4: implement GtkPaintable::get_flagsCaolán McNamara
Change-Id: Iaa8071a37d583c4a16632e3f8e98a7bf50709991 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124877 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-10-08sort buttons using id instead of HelpIdCaolán McNamara
when created from the builder a widget's HelpId is the patch to the widget and always ends in the widget id so this is no change for that case, but when created directly by vcl for e.g. a MessageDialog while the id is set the helpid is empty, so this means that Yes/No MessageDialogs have their buttons sorted the same as if the Yes/No buttons were explicitly spelled out in a builder .ui Change-Id: Iee1a7146d2b6da76804856b1c4df8849ddd91a0c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123253 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-09-23gtk4: fix buildCaolán McNamara
Change-Id: I6bee4180ea2d91a2917765bc1934a8403b72c07e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122513 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-09-16gtk4: set always-show-arrow on GtkMenuToolButton replacementsCaolán McNamara
Change-Id: I4c1be40e40d2f1e2bcbf26cffda7a6dd52e4f731 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122191 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-09-16gtk4: set can-shrink to False for GtkPictureCaolán McNamara
for the icon in GtkMenuButton in the calc, insert, header and footer in gtk 4.6 where the MenuButton begins to support a child widget again but the icon while now shown in squished Change-Id: Ibc274d88b1185eee0ee61973b40b5cde2d08f554 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122187 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-09-16gtk4: set newly available always-show-arrow propertyCaolán McNamara
since 4.4 Change-Id: I6d7d0077617077606a7ef48f22183fcd3ca69c88 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122181 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-09-10gtk4: default GtkViewport to can-focusCaolán McNamara
Change-Id: If4c730cef1782c20f6f8519e77ff336c0e9e692c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121870 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-08-11gtk4: get startcenter MenuToggleButton workingCaolán McNamara
the button parts, not the menu part yet Change-Id: I016d2c2160a4e8c0c4d1e096f49d0e518b89a55b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120326 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-14gtk4: convert GtkSeparatorToolItem to GtkSeparatorCaolán McNamara
Change-Id: I24c0e3b515df505085ae77c350eb6aecfc0db003 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118889 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-07gtk4: convert GtkRadioToolButton to GtkCheckButtonCaolán McNamara
Change-Id: If09508de92aba82ea414cd2fb7b7029e96aaf2f9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118553 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-07gtk4: replace GtkToolItem with GtkBoxCaolán McNamara
Change-Id: I02067a4b22817518451daf5d93de8d89dc8e5027 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118522 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-07gtk4: convert GtkMenuToolButton to GtkMenuButtonCaolán McNamara
Change-Id: I5b11e49e5eab68926b76814a07718e761fc6beda Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118521 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-06gtk4: add some more working dialogsCaolán McNamara
Change-Id: I7fc4c6bfecca783a4c60c13f61c66a8a665e41a7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118490 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-06gtk4: convert GtkToggleToolButton to GtkToggleButtonCaolán McNamara
Change-Id: I35b5cbc0bc4fb50f0eb763b1de1d31646bbf961e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118478 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-06gtk4: add style of class toolbar to GtkBox replacing GtkToolbarCaolán McNamara
Change-Id: I4b21fc7081f1037be610148fd032b257fdc698af Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118475 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-06gtk4: turn GtkToolButton labels into GtkButton tooltip-textCaolán McNamara
Change-Id: I03e49b79a9a5252459315d3806ab46d4032690e4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118468 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-06gtk4: get enough of toolbar working to get spelling dialog to appearCaolán McNamara
there isn't a dedicated GtkToolbar anymore, just a generic GtkBox with GtkButton children Change-Id: I6d67c9ffde13dc4f787804466ece498f973ba0b7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118467 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-28split out customcellrenderer codeCaolán McNamara
Change-Id: Ia2803f6eab14ee7aeb697fb039f4e6dbdefa25e2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117958 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
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-25gtk4: split out clipboard_content headerCaolán McNamara
Change-Id: I1b820c1cef2cc76a5fc748574c36ebdd4b28eef1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117797 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-17gtk4: extend workaround for ampersand in paragraph dialog notebook labelsCaolán McNamara
Change-Id: Ib165f1ab1173f7bb6500d5dfff5f82e4216d9f42 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117380 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-17gtk4: no need for ampersand workaround in an empty labelCaolán McNamara
Change-Id: I7e1327303589cc9c2bb24b72d5cac92ff0fc0bfb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117379 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-17split SurfacePaintable outCaolán McNamara
Change-Id: I07d2109080f19fb7cf95bc439e5d99ba3247c2bc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117371 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-17split NotifyingLayout outCaolán McNamara
Change-Id: Ib706331f9e6b3749559a0b78f1a07d442a674829 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117369 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-16gtk 4.3.2 will have a fix for thisCaolán McNamara
Change-Id: Idae818c0d7220d0fbe08462eff1654c22d24310c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117284 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-16gtk4: use xalign to position replacement boxCaolán McNamara
insert, section the "pick button" in color subtab of background as an example of a horizontally centered case and format, watermark, color dropdown "custom color" as a left aligned example. Change-Id: Id318b5acec44ceccaed5875e4f747968225bdd78 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117278 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-16gtk4: use image-position to position elements within replacement boxCaolán McNamara
enable insert, section with pick button in color subtab of background tabpage as example usage Change-Id: Ie972e2de9181888b59159a7a12651e6f7f7dec26 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117275 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-15gtk4: use GtkPicture for view, user interfaceCaolán McNamara
Change-Id: I6677233dc0594d6b2e9ea4b8f901550dbff46361 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117261 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-15gtk4: double-encode ampersand if use-underline is usedCaolán McNamara
as seen in calc paste special dialog see https://gitlab.gnome.org/GNOME/gtk/-/issues/4041 Change-Id: I5425d1f5b5474fc6cda949e8fcb76b734ab893e8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117259 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-15gtk4: don't convert generated button image-childCaolán McNamara
its already convert, so don't double convert to remove e.g. already converted icon-size in calc paste special Change-Id: Id87ca7a6dfecdca102e1a12a37eed90b0e40e48c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117250 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-15gtk4: further disambiguation of Image/PictureCaolán McNamara
examples of GtkPicture wanted: a) math, format, spacing b) all, help, about examples of GtkImage wanted: a) writer, format, columns, next/prev b) writer, insert, hyperlink c) calc, paste special Change-Id: I53ad0a40f30a4963a8490c4e76fa50c463de0903 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117249 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-15gtk4: convert all the larger old icon sizes to GTK_ICON_SIZE_LARGECaolán McNamara
Change-Id: I88921495e60f47b54e4d473315ee953872e61891 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117248 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-15gtk4: support image at top in button with vert orientation of child boxCaolán McNamara
Change-Id: I87b7c2752120d272eb176307465d658f4a980170 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117244 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-15gtk4: leave Help button unchanged if its in a GtkMessageDialogCaolán McNamara
as opposed to a help button which will be relocated to the titlebar Change-Id: I2053ad05025cce9e0a894b555160b56eb5bc2f6b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117239 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-14gtk4: create separators on menu import by appending a new sectionCaolán McNamara
where we have established that we always have a section in a menu to close when opening a new one Change-Id: I8af90dd89281dd0f10bcec5665d96412108cb5d3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117179 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-14gtk4: add hidden-when of action-missing to menu itemsCaolán McNamara
Change-Id: I054f3573c8a251c605ab1f3a426f6a905a908851 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117177 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-11gtk4: build deeper levels of GMenuModelCaolán McNamara
Change-Id: Ia2cbe4fdc583d272152b4eaa9da9f9d2ff4af550 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117066 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-11gtk4: process sections and submenus of toplevel menumodelCaolán McNamara
and place initial contents into a section by default Change-Id: I1e7bb20bf5efb481e4f7ed0f38c8b46c06f7a7d5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117050 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-09gtk4: implement some more of the menu requirementsCaolán McNamara
just give each radiobutton its own group Change-Id: I0239a3f1364cde91a668fe890a4178e4ce73f78b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116864 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-09gtk4: default that empty button labels are invisibleCaolán McNamara
Change-Id: If64e9592b48ac376933aac1e30ef76b096a3a0ee Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116859 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-08gtk4: expand the first child of the end groupCaolán McNamara
if there are start group entries Change-Id: I91188b0e5961a53730f6e157e8ea9be6b69ff92d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116851 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>