user2550098
user2550098

Reputation: 193

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.

Upvotes: 3

Views: 289

Answers (1)

Jussi Kukkonen
Jussi Kukkonen

Reputation: 14617

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().

Upvotes: 4

Related Questions