Guarded GTK2-only GtkObjectClass declaration/assignment with explicit #if !HAVE_GTK3 checks in gtk_xtext_class_init.

This commit is contained in:
2026-01-29 22:57:13 -07:00
parent 49e23b7df5
commit 7cbd905fae

View File

@@ -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;