[gtk+] gtktreeviewaccessible: factor out cell_info_free()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtktreeviewaccessible: factor out cell_info_free()
- Date: Thu, 10 Nov 2011 13:50:12 +0000 (UTC)
commit 22807d84698d5cf5b1ac3a633897837249335779
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Nov 9 14:31:43 2011 +0100
gtktreeviewaccessible: factor out cell_info_free()
https://bugzilla.gnome.org/show_bug.cgi?id=663694
gtk/a11y/gtktreeviewaccessible.c | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/gtk/a11y/gtktreeviewaccessible.c b/gtk/a11y/gtktreeviewaccessible.c
index f78f376..9a69326 100644
--- a/gtk/a11y/gtktreeviewaccessible.c
+++ b/gtk/a11y/gtktreeviewaccessible.c
@@ -207,6 +207,15 @@ vadjustment_set_cb (GObject *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
gtk_tree_view_accessible_initialize (AtkObject *obj,
gpointer data)
{
@@ -2836,11 +2845,8 @@ garbage_collect_cell_data (gpointer data)
{
if (!cell_info->in_use)
{
- /* 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);
- g_hash_table_iter_remove (&iter);
+ cell_info_free (cell_info);
+ g_hash_table_iter_remove (&iter);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]