Replaced manual type macros with G_DECLARE_DERIVABLE_TYPE in GtkXText, CustomList, SexySpellEntry, and RemoteObject declarations while aligning parent instance naming.

Switched GtkXText and CustomList implementations to G_DEFINE_TYPE/G_DEFINE_TYPE_WITH_CODE and preserved parent chaining behavior
Added GTK3/GTK2 conditional type declarations for GtkXText while restoring the legacy macro block for GTK2 builds.
Restored GTK2-friendly typedefs/macros and parent field naming for CustomList alongside GTK3 G_DECLARE_DERIVABLE_TYPE usage.
Restored GTK2-friendly typedefs/macros and parent field naming for SexySpellEntry while keeping GTK3 declarations intact.
Restored legacy RemoteObject typedefs and GType macros in the D-Bus plugin to keep GTK2 builds from seeing incomplete types or missing fields/macros.
This commit is contained in:
2026-01-31 10:45:22 -07:00
parent e1b4e18153
commit 9e46407e89
6 changed files with 58 additions and 127 deletions

View File

@@ -40,12 +40,12 @@ static GList *contexts = NULL;
static GHashTable *clients = NULL;
static DBusGConnection *connection;
typedef struct RemoteObject RemoteObject;
typedef struct RemoteObjectClass RemoteObjectClass;
typedef struct _RemoteObject RemoteObject;
typedef struct _RemoteObjectClass RemoteObjectClass;
GType Remote_object_get_type (void);
GType remote_object_get_type (void);
struct RemoteObject
struct _RemoteObject
{
GObject parent;
@@ -59,9 +59,9 @@ struct RemoteObject
void *handle;
};
struct RemoteObjectClass
struct _RemoteObjectClass
{
GObjectClass parent;
GObjectClass parent_class;
};
typedef struct