Y
Hacker News
new
|
ask
|
show
|
jobs
by
1718627440
147 days ago
Why are you complicating things? Struct and Unions are different namespaces for a reason.
typedef struct GtkLabel GtkLabel;
works just fine.
1 comments
apaprocki
146 days ago
I’m simply stating how actual Gtk is written:
https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtklabel....
link
1718627440
146 days ago
True, thanks then. As far as I see it they don't even use the struct in the implementation, so I guess it makes some sense.
link
https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtklabel....