Replaced legacy GTK type macro blocks with G_DECLARE_* declarations for GtkXText, CustomList, and SexySpellEntry, and aligned the GtkXText parent field naming across GTK2/GTK3 guards.

Updated RemoteObject to use G_DECLARE_FINAL_TYPE and the parent_instance field naming convention
This commit is contained in:
2026-01-31 11:15:42 -07:00
parent 9e46407e89
commit a9f8e1e897
3 changed files with 7 additions and 25 deletions

View File

@@ -22,9 +22,6 @@
#include <gtk/gtk.h>
#if HAVE_GTK3
G_DECLARE_DERIVABLE_TYPE (CustomList, custom_list, CUSTOM, LIST, GObject)
#else
typedef struct _CustomList CustomList;
typedef struct _CustomListClass CustomListClass;
@@ -39,7 +36,6 @@ GType custom_list_get_type (void);
#define CUSTOM_IS_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CUSTOM_TYPE_LIST))
#define CUSTOM_IS_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CUSTOM_TYPE_LIST))
#define CUSTOM_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CUSTOM_TYPE_LIST, CustomListClass))
#endif
/* The data columns that we export via the tree model interface */

View File

@@ -137,7 +137,7 @@ struct _GtkXText
#if HAVE_GTK3
GtkWidget parent_instance;
#else
GtkWidget widget;
GtkWidget parent;
#endif
xtext_buffer *buffer;