forked from AuroraMiddleware/gtk
Fixes to GtkTree, courtesy of Erik Troan <ewt@redhat.com>
This commit is contained in:
parent
f6f927d227
commit
86a97f7835
@ -55,8 +55,6 @@ static void gtk_tree_size_allocate (GtkWidget *widget,
|
|||||||
GtkAllocation *allocation);
|
GtkAllocation *allocation);
|
||||||
static void gtk_tree_add (GtkContainer *container,
|
static void gtk_tree_add (GtkContainer *container,
|
||||||
GtkWidget *widget);
|
GtkWidget *widget);
|
||||||
static void gtk_tree_remove (GtkContainer *container,
|
|
||||||
GtkWidget *widget);
|
|
||||||
static void gtk_tree_foreach (GtkContainer *container,
|
static void gtk_tree_foreach (GtkContainer *container,
|
||||||
GtkCallback callback,
|
GtkCallback callback,
|
||||||
gpointer callback_data);
|
gpointer callback_data);
|
||||||
@ -151,7 +149,7 @@ gtk_tree_class_init (GtkTreeClass *class)
|
|||||||
widget_class->size_allocate = gtk_tree_size_allocate;
|
widget_class->size_allocate = gtk_tree_size_allocate;
|
||||||
|
|
||||||
container_class->add = gtk_tree_add;
|
container_class->add = gtk_tree_add;
|
||||||
container_class->remove = gtk_tree_remove;
|
container_class->remove = (void *) gtk_tree_remove_item;
|
||||||
container_class->foreach = gtk_tree_foreach;
|
container_class->foreach = gtk_tree_foreach;
|
||||||
|
|
||||||
class->selection_changed = NULL;
|
class->selection_changed = NULL;
|
||||||
@ -237,7 +235,7 @@ gtk_tree_insert (GtkTree *tree,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
g_list_insert(tree->children, child, position);
|
tree->children = g_list_insert(tree->children, child, position);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GTK_WIDGET_VISIBLE (tree))
|
if (GTK_WIDGET_VISIBLE (tree))
|
||||||
@ -618,8 +616,8 @@ gtk_tree_realize (GtkWidget *widget)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
void
|
||||||
gtk_tree_remove (GtkContainer *container,
|
gtk_tree_remove_item (GtkTree *container,
|
||||||
GtkWidget *widget)
|
GtkWidget *widget)
|
||||||
{
|
{
|
||||||
GList *item_list;
|
GList *item_list;
|
||||||
@ -627,7 +625,7 @@ gtk_tree_remove (GtkContainer *container,
|
|||||||
g_return_if_fail (container != NULL);
|
g_return_if_fail (container != NULL);
|
||||||
g_return_if_fail (GTK_IS_TREE (container));
|
g_return_if_fail (GTK_IS_TREE (container));
|
||||||
g_return_if_fail (widget != NULL);
|
g_return_if_fail (widget != NULL);
|
||||||
g_return_if_fail (container == GTK_CONTAINER (widget->parent));
|
g_return_if_fail (container == GTK_TREE (widget->parent));
|
||||||
|
|
||||||
item_list = g_list_alloc ();
|
item_list = g_list_alloc ();
|
||||||
item_list->data = widget;
|
item_list->data = widget;
|
||||||
|
Loading…
Reference in New Issue
Block a user