mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-12 16:50:19 +00:00
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:
@@ -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 */
|
||||
|
||||
|
||||
@@ -137,7 +137,7 @@ struct _GtkXText
|
||||
#if HAVE_GTK3
|
||||
GtkWidget parent_instance;
|
||||
#else
|
||||
GtkWidget widget;
|
||||
GtkWidget parent;
|
||||
#endif
|
||||
|
||||
xtext_buffer *buffer;
|
||||
|
||||
Reference in New Issue
Block a user