From 7cbd905fae92ffa89d83e45a92f1cf372d9a97c3 Mon Sep 17 00:00:00 2001 From: deepend Date: Thu, 29 Jan 2026 22:57:13 -0700 Subject: [PATCH] Guarded GTK2-only GtkObjectClass declaration/assignment with explicit #if !HAVE_GTK3 checks in gtk_xtext_class_init. --- src/fe-gtk/xtext.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/fe-gtk/xtext.c b/src/fe-gtk/xtext.c index adfd593c..9bb4e1ad 100644 --- a/src/fe-gtk/xtext.c +++ b/src/fe-gtk/xtext.c @@ -2618,13 +2618,15 @@ gtk_xtext_class_init (GtkXTextClass * class) GtkXTextClass *xtext_class; #if HAVE_GTK3 GObjectClass *object_class; -#else +#endif +#if !HAVE_GTK3 GtkObjectClass *object_class; #endif #if HAVE_GTK3 object_class = G_OBJECT_CLASS (class); -#else +#endif +#if !HAVE_GTK3 object_class = (GtkObjectClass *) class; #endif widget_class = (GtkWidgetClass *) class;