Search code examples
cgtkglade

how to get children of a notebook in gtk using C


I have a gtk window that contains a notebook. I want to get the children of the same. I am using following statement GList *children; notebook = GTK_WIDGET (gtk_builder_get_object (self->gui, "list_notebook")); children = gtk_container_get_childern (GTK_CONTAINER (notebook));

I am getting the following error while compiling

error: implicit declaration of function ‘gtk_container_children’ [-Werror=implicit-function-declaration]

Please help me with this. Thanks in anticipation.


Solution

  • gtk_container_children() has been deprecated for a very long time and is not part of the GTK+ 3 API. Whatever component is using that macro needs to be updated to use gtk_container_get_children().