mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-12 08:40:19 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user