diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-04-25 10:11:15 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-04-25 18:00:35 +0200 |
commit | 0c3fb583b9fdbbc634a5cabe578d3e717c36bff6 (patch) | |
tree | 9b50a9bda0b82629424e6bf5d80af6b52a00b81d /sysui/desktop/menus | |
parent | 6fd06e0215602c61ce6cefb07a3d401fc85d30c2 (diff) |
"input-purpose" is a property of GtkEntry, for both,
GTK 3 [1] and GTK 4 [2].
However, while the GTK 3 GtkSpinButton derives from GtkEntry [3],
the GTK 4 one doesn't any more but it derives directly from
GtkWidget [4].
Therefore, after
commit 139199ee9c09d25624191132adbe4fd29365eb7a
Date: Thu Feb 22 00:03:01 2024 -0900
tdf#141728 Revamp sw navigator go to page spin control
, opening the navigator by pressing F5 in Writer when
using the gtk4 VCL plugin triggered the following assert:
warn:vcl.gtk:233860:233860:vcl/unx/gtk4/convert3to4.cxx:1595: GtkInstanceBuilder: error when calling gtk_builder_add_from_string: .:197:65 Invalid property: GtkSpinButton.input-purpose
soffice.bin: /home/michi/development/git/libreoffice/vcl/unx/gtk4/convert3to4.cxx:1598: void builder_add_from_gtk3_file(GtkBuilder *, const OUString &): Assertion `rc && "could not load UI file"' failed.
Just ignore that property for gtk4.
[1] https://docs.gtk.org/gtk3/property.Entry.input-purpose.html
[2] https://docs.gtk.org/gtk4/property.Entry.input-purpose.html
[3] https://docs.gtk.org/gtk3/class.SpinButton.html
[4] https://docs.gtk.org/gtk4/class.SpinButton.html
Change-Id: Ia3ece9fdf0269dc5178786fc64644ab3f0433871
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166618
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'sysui/desktop/menus')
0 files changed, 0 insertions, 0 deletions