Skip to content

gtk.cfg: Remove incorrect release function#8546

Open
Tamaranch wants to merge 1 commit intocppcheck-opensource:mainfrom
Tamaranch:gtk_widget_destroy
Open

gtk.cfg: Remove incorrect release function#8546
Tamaranch wants to merge 1 commit intocppcheck-opensource:mainfrom
Tamaranch:gtk_widget_destroy

Conversation

@Tamaranch
Copy link
Copy Markdown

gtk_widget_destroy is only for GtkWidget derived objects.

@chrchr-github
Copy link
Copy Markdown
Collaborator

Please add a (simple) example using gtk_widget_destroy() in gtk.c.

gtk_widget_destroy is only for GtkWidget derived objects, and in
practice should only be used for GtkWindow derived widgets (it is
replaced with gtk_window_destroy in gtk4).
@Tamaranch Tamaranch force-pushed the gtk_widget_destroy branch from 5d43e32 to 435e7b4 Compare May 11, 2026 13:43
@Tamaranch
Copy link
Copy Markdown
Author

Please add a (simple) example using gtk_widget_destroy() in gtk.c.

Done. I also removed duplicate definition of gtk_widget_destroy and added definition of gtk_window_new for proper test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants