forked from AuroraMiddleware/gtk
treepopover: Stop using container api
This commit is contained in:
parent
b490800949
commit
a7769c9c88
@ -466,15 +466,14 @@ gtk_tree_popover_get_path_item (GtkTreePopover *popover,
|
||||
{
|
||||
GtkWidget *stack = gtk_popover_get_child (GTK_POPOVER (popover));
|
||||
GtkWidget *item = NULL;
|
||||
GList *children, *l;
|
||||
|
||||
children = gtk_container_get_children (GTK_CONTAINER (stack));
|
||||
|
||||
for (l = children; !item && l; l = l->next)
|
||||
{
|
||||
GtkWidget *stackchild;
|
||||
GtkWidget *child;
|
||||
|
||||
for (child = gtk_widget_get_first_child (GTK_WIDGET (l->data));
|
||||
for (stackchild = gtk_widget_get_first_child (stack);
|
||||
stackchild != NULL;
|
||||
stackchild = gtk_widget_get_next_sibling (stackchild))
|
||||
{
|
||||
for (child = gtk_widget_get_first_child (stackchild);
|
||||
!item && child;
|
||||
child = gtk_widget_get_next_sibling (child))
|
||||
{
|
||||
@ -510,8 +509,6 @@ gtk_tree_popover_get_path_item (GtkTreePopover *popover,
|
||||
}
|
||||
}
|
||||
|
||||
g_list_free (children);
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user