我有一个包含笔记本的 gtk 窗口。我想得到相同的 child 。我正在使用以下语句
GList * child ;
notebook = GTK_WIDGET (gtk_builder_get_object (self->gui, "list_notebook"));
children = gtk_container_get_childern (GTK_CONTAINER (notebook));
编译时出现以下错误
error: implicit declaration of function ‘gtk_container_children’ [-Werror=implicit-function-declaration]
请帮我解决这个问题。感谢期待。
最佳答案
gtk_container_children()
很 已被弃用,并且不是 GTK+ 3 API 的一部分。使用该宏的任何组件都需要更新才能使用 gtk_container_get_children()
.
关于c - 如何使用 C 在 gtk 中获取笔记本的子项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26630829/