top | item 46744517 (no title) apaprocki | 1 month ago Yes, using the same Gtk example, the way you’d forward declare GtkLabel without including gtklabel.h in your header would be: struct _GtkLabel; typedef struct _GtkLabel GtkLabel; // Use GtkLabel* in declarations discuss order hn newest 1718627440|1 month ago Why are you complicating things? Struct and Unions are different namespaces for a reason. typedef struct GtkLabel GtkLabel; works just fine. apaprocki|1 month ago I’m simply stating how actual Gtk is written:https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtklabel.... load replies (1)
1718627440|1 month ago Why are you complicating things? Struct and Unions are different namespaces for a reason. typedef struct GtkLabel GtkLabel; works just fine. apaprocki|1 month ago I’m simply stating how actual Gtk is written:https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtklabel.... load replies (1)
apaprocki|1 month ago I’m simply stating how actual Gtk is written:https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtklabel.... load replies (1)
1718627440|1 month ago
apaprocki|1 month ago
https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtklabel....