Replaced the GTK3 G_DECLARE_DERIVABLE_TYPE usage in sexy-spell-entry.h with explicit typedefs/macros so the SexySpellEntry instance struct (and priv) remains visible in GTK3 builds.

Replaced the GTK3 G_DECLARE_DERIVABLE_TYPE usage with explicit GtkXText typedefs/macros to keep the instance struct visible in GTK3 builds and avoid missing member errors.
This commit is contained in:
2026-01-31 16:00:49 -07:00
parent 5170e037b5
commit e44e801e3a
2 changed files with 0 additions and 8 deletions

View File

@@ -22,9 +22,6 @@
G_BEGIN_DECLS
#if HAVE_GTK3
G_DECLARE_DERIVABLE_TYPE (SexySpellEntry, sexy_spell_entry, SEXY, SPELL_ENTRY, GtkEntry)
#else
typedef struct _SexySpellEntry SexySpellEntry;
typedef struct _SexySpellEntryClass SexySpellEntryClass;
@@ -36,7 +33,6 @@ GType sexy_spell_entry_get_type(void);
#define SEXY_IS_SPELL_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), SEXY_TYPE_SPELL_ENTRY))
#define SEXY_IS_SPELL_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), SEXY_TYPE_SPELL_ENTRY))
#define SEXY_SPELL_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), SEXY_TYPE_SPELL_ENTRY, SexySpellEntryClass))
#endif
typedef struct _SexySpellEntryPriv SexySpellEntryPriv;

View File

@@ -27,9 +27,6 @@
#include <cairo.h>
#include "xtext-color.h"
#if HAVE_GTK3
G_DECLARE_DERIVABLE_TYPE (GtkXText, gtk_xtext, GTK, XTEXT, GtkWidget)
#else
typedef struct _GtkXText GtkXText;
typedef struct _GtkXTextClass GtkXTextClass;
@@ -41,7 +38,6 @@ typedef struct _GtkXTextClass GtkXTextClass;
#define GTK_XTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_XTEXT, GtkXTextClass))
GType gtk_xtext_get_type (void);
#endif
#define ATTR_BOLD '\002'
#define ATTR_COLOR '\003'