mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 23:10:22 +00:00
gtktreeviewaccessible: factor out cell_info_free()
https://bugzilla.gnome.org/show_bug.cgi?id=663694
This commit is contained in:
parent
14a17873de
commit
22807d8469
@ -206,6 +206,15 @@ vadjustment_set_cb (GObject *widget,
|
|||||||
G_CALLBACK (adjustment_changed), widget);
|
G_CALLBACK (adjustment_changed), widget);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
cell_info_free (GtkTreeViewAccessibleCellInfo *cell_info)
|
||||||
|
{
|
||||||
|
/* g_object_unref (cell_info->cell); */
|
||||||
|
if (cell_info->cell_row_ref)
|
||||||
|
gtk_tree_row_reference_free (cell_info->cell_row_ref);
|
||||||
|
g_free (cell_info);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gtk_tree_view_accessible_initialize (AtkObject *obj,
|
gtk_tree_view_accessible_initialize (AtkObject *obj,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
@ -2836,11 +2845,8 @@ garbage_collect_cell_data (gpointer data)
|
|||||||
{
|
{
|
||||||
if (!cell_info->in_use)
|
if (!cell_info->in_use)
|
||||||
{
|
{
|
||||||
/* g_object_unref (cell_info->cell); */
|
cell_info_free (cell_info);
|
||||||
if (cell_info->cell_row_ref)
|
g_hash_table_iter_remove (&iter);
|
||||||
gtk_tree_row_reference_free (cell_info->cell_row_ref);
|
|
||||||
g_free (cell_info);
|
|
||||||
g_hash_table_iter_remove (&iter);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user