[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sat May 22 20:00:39 UTC 2021
vcl/unx/gtk3/gtkinst.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit a197ad20a8b4511f710b0f6f9d1d7f0ccf4de0aa
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat May 22 19:22:14 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sat May 22 21:58:25 2021 +0200
gtk[3|4] get class size from g_type_query of viewport type
Change-Id: I7121159b600b9be6e3b80364ada1f145226c26da
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115999
Tested-by: Caolán McNamara <caolanm at redhat.com>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index 611ca2a1096b..631da4d4af14 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -6212,9 +6212,12 @@ GType immobilized_viewport_get_type()
if (!type)
{
+ GTypeQuery query;
+ g_type_query(gtk_viewport_get_type(), &query);
+
static const GTypeInfo tinfo =
{
- sizeof (GtkViewportClass),
+ static_cast<guint16>(query.class_size),
nullptr, /* base init */
nullptr, /* base finalize */
reinterpret_cast<GClassInitFunc>(immobilized_viewport_class_init), /* class init */
More information about the Libreoffice-commits
mailing list