27 GList *box=gtk_container_get_children(container);
28 GtkWidget *visible=NULL;
29 std::cout<<
"getContainersFirstVisibleWidget : g_list_length(box)="<<g_list_length(box)<<std::endl;
30 for (
int i=0; i<(
int)g_list_length(box); i++) {
31 visible=
static_cast<GtkWidget*
>(g_list_nth_data(box,i));
32 if (gtk_widget_get_visible(visible)) {
45 GList *box=gtk_container_get_children(widget);
46 if (g_list_length(box)>1)
47 std::cerr<<
"More then one widget in the container - returning only the first"<<std::endl;
48 if (g_list_length(box))
49 return (GtkWidget *)g_list_nth_data(box,0);
51 return (GtkWidget *)NULL;