[gtk+/combo-refactor: 19/48] Fixed GtkCellView to call cell_view_set_model() and disconnect signals at dispose time.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/combo-refactor: 19/48] Fixed GtkCellView to call cell_view_set_model() and disconnect signals at dispose time.
- Date: Wed, 8 Dec 2010 12:38:48 +0000 (UTC)
commit 5e9c4c54bf3d252d5daef2a58c34fda540dcd284
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Tue Nov 23 12:39:00 2010 +0900
Fixed GtkCellView to call cell_view_set_model() and disconnect signals at dispose time.
gtk/gtkcellview.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkcellview.c b/gtk/gtkcellview.c
index 848abc7..6adaa78 100644
--- a/gtk/gtkcellview.c
+++ b/gtk/gtkcellview.c
@@ -428,11 +428,7 @@ gtk_cell_view_dispose (GObject *object)
{
GtkCellView *cellview = GTK_CELL_VIEW (object);
- if (cellview->priv->model)
- {
- g_object_unref (cellview->priv->model);
- cellview->priv->model = NULL;
- }
+ gtk_cell_view_set_model (cellview, NULL);
if (cellview->priv->area)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]