[gtk/wip/baedert/for-master] textview: Stop implementing destroy()
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master] textview: Stop implementing destroy()
- Date: Wed, 2 Oct 2019 11:34:48 +0000 (UTC)
commit 913e6dc51c0b5713b28855741ad811bd1616b9d1
Author: Timm Bäder <mail baedert org>
Date: Wed Oct 2 13:29:27 2019 +0200
textview: Stop implementing destroy()
gtk/gtktextview.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 7811fd79af..f8d73dbd63 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -357,7 +357,7 @@ static void gtk_text_view_get_property (GObject *object,
guint prop_id,
GValue *value,
GParamSpec *pspec);
-static void gtk_text_view_destroy (GtkWidget *widget);
+static void gtk_text_view_dispose (GObject *object);
static void gtk_text_view_measure (GtkWidget *widget,
GtkOrientation orientation,
int for_size,
@@ -706,9 +706,9 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
*/
gobject_class->set_property = gtk_text_view_set_property;
gobject_class->get_property = gtk_text_view_get_property;
+ gobject_class->dispose = gtk_text_view_dispose;
gobject_class->finalize = gtk_text_view_finalize;
- widget_class->destroy = gtk_text_view_destroy;
widget_class->realize = gtk_text_view_realize;
widget_class->unrealize = gtk_text_view_unrealize;
widget_class->map = gtk_text_view_map;
@@ -3563,12 +3563,12 @@ gtk_text_view_remove_validate_idles (GtkTextView *text_view)
}
static void
-gtk_text_view_destroy (GtkWidget *widget)
+gtk_text_view_dispose (GObject *object)
{
GtkTextView *text_view;
GtkTextViewPrivate *priv;
- text_view = GTK_TEXT_VIEW (widget);
+ text_view = GTK_TEXT_VIEW (object);
priv = text_view->priv;
gtk_text_view_remove_validate_idles (text_view);
@@ -3590,7 +3590,7 @@ gtk_text_view_destroy (GtkWidget *widget)
if (priv->magnifier)
_gtk_magnifier_set_inspected (GTK_MAGNIFIER (priv->magnifier), NULL);
- GTK_WIDGET_CLASS (gtk_text_view_parent_class)->destroy (widget);
+ G_OBJECT_CLASS (gtk_text_view_parent_class)->dispose (object);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]