[gtk/wip/baedert/for-master] treeview: Stop implementing destroy()
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master] treeview: Stop implementing destroy()
- Date: Wed, 2 Oct 2019 11:32:52 +0000 (UTC)
commit a423997f54f3fe3afe745d76d7393dc42d7a07ba
Author: Timm Bäder <mail baedert org>
Date: Wed Oct 2 12:12:32 2019 +0200
treeview: Stop implementing destroy()
gtk/gtktreeview.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index f7ec1b3f5f..020f2c3d82 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -634,7 +634,7 @@ static void gtk_tree_view_get_property (GObject *object,
GParamSpec *pspec);
/* gtkwidget signals */
-static void gtk_tree_view_destroy (GtkWidget *widget);
+static void gtk_tree_view_dispose (GObject *object);
static void gtk_tree_view_realize (GtkWidget *widget);
static void gtk_tree_view_unrealize (GtkWidget *widget);
static void gtk_tree_view_map (GtkWidget *widget);
@@ -1016,10 +1016,10 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
/* GObject signals */
o_class->set_property = gtk_tree_view_set_property;
o_class->get_property = gtk_tree_view_get_property;
+ o_class->dispose = gtk_tree_view_dispose;
o_class->finalize = gtk_tree_view_finalize;
/* GtkWidget signals */
- widget_class->destroy = gtk_tree_view_destroy;
widget_class->map = gtk_tree_view_map;
widget_class->realize = gtk_tree_view_realize;
widget_class->unrealize = gtk_tree_view_unrealize;
@@ -2117,9 +2117,9 @@ gtk_tree_view_destroy_search_window (GtkTreeView *tree_view)
}
static void
-gtk_tree_view_destroy (GtkWidget *widget)
+gtk_tree_view_dispose (GObject *object)
{
- GtkTreeView *tree_view = GTK_TREE_VIEW (widget);
+ GtkTreeView *tree_view = GTK_TREE_VIEW (object);
GtkTreeViewPrivate *priv = gtk_tree_view_get_instance_private (tree_view);
GList *list;
@@ -2227,7 +2227,7 @@ gtk_tree_view_destroy (GtkWidget *widget)
g_clear_object (&priv->horizontal_tree_line_texture);
g_clear_object (&priv->vertical_tree_line_texture);
- GTK_WIDGET_CLASS (gtk_tree_view_parent_class)->destroy (widget);
+ G_OBJECT_CLASS (gtk_tree_view_parent_class)->dispose (object);
}
/* GtkWidget::map helper */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]