mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 20:51:07 +00:00
treeview: Use dispose instead of destroy
The destroy vfunc is going away.
This commit is contained in:
parent
3d4bb76694
commit
401f8a7f31
@ -631,6 +631,7 @@ enum {
|
||||
|
||||
/* object signals */
|
||||
static void gtk_tree_view_finalize (GObject *object);
|
||||
static void gtk_tree_view_dispose (GObject *object);
|
||||
static void gtk_tree_view_set_property (GObject *object,
|
||||
guint prop_id,
|
||||
const GValue *value,
|
||||
@ -641,7 +642,6 @@ 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_realize (GtkWidget *widget);
|
||||
static void gtk_tree_view_unrealize (GtkWidget *widget);
|
||||
static void gtk_tree_view_map (GtkWidget *widget);
|
||||
@ -1015,9 +1015,9 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
|
||||
o_class->set_property = gtk_tree_view_set_property;
|
||||
o_class->get_property = gtk_tree_view_get_property;
|
||||
o_class->finalize = gtk_tree_view_finalize;
|
||||
o_class->dispose = gtk_tree_view_dispose;
|
||||
|
||||
/* 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;
|
||||
@ -2078,9 +2078,9 @@ gtk_tree_view_destroy_search_popover (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);
|
||||
GList *list;
|
||||
|
||||
gtk_tree_view_stop_editing (tree_view, TRUE);
|
||||
@ -2187,7 +2187,7 @@ gtk_tree_view_destroy (GtkWidget *widget)
|
||||
g_clear_object (&tree_view->horizontal_tree_line_texture);
|
||||
g_clear_object (&tree_view->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 */
|
||||
|
Loading…
Reference in New Issue
Block a user