[gtk/wip/baedert/for-master] spinbutton: Stop implementing destroy()
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master] spinbutton: Stop implementing destroy()
- Date: Wed, 2 Oct 2019 11:33:28 +0000 (UTC)
commit e4066b627ff0bae18f2b0b14e63c6f70d8561cbc
Author: Timm Bäder <mail baedert org>
Date: Wed Oct 2 12:52:04 2019 +0200
spinbutton: Stop implementing destroy()
gtk/gtkspinbutton.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index bae263878e..63eed63774 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -270,7 +270,7 @@ static void gtk_spin_button_get_property (GObject *object,
guint prop_id,
GValue *value,
GParamSpec *pspec);
-static void gtk_spin_button_destroy (GtkWidget *widget);
+static void gtk_spin_button_dispose (GObject *object);
static void gtk_spin_button_realize (GtkWidget *widget);
static void gtk_spin_button_grab_notify (GtkWidget *widget,
gboolean was_grabbed);
@@ -345,11 +345,11 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class);
GtkBindingSet *binding_set;
+ gobject_class->dispose = gtk_spin_button_dispose;
gobject_class->finalize = gtk_spin_button_finalize;
gobject_class->set_property = gtk_spin_button_set_property;
gobject_class->get_property = gtk_spin_button_get_property;
- widget_class->destroy = gtk_spin_button_destroy;
widget_class->realize = gtk_spin_button_realize;
widget_class->grab_notify = gtk_spin_button_grab_notify;
widget_class->state_flags_changed = gtk_spin_button_state_flags_changed;
@@ -960,11 +960,11 @@ gtk_spin_button_finalize (GObject *object)
}
static void
-gtk_spin_button_destroy (GtkWidget *widget)
+gtk_spin_button_dispose (GObject *object)
{
- gtk_spin_button_stop_spinning (GTK_SPIN_BUTTON (widget));
+ gtk_spin_button_stop_spinning (GTK_SPIN_BUTTON (object));
- GTK_WIDGET_CLASS (gtk_spin_button_parent_class)->destroy (widget);
+ G_OBJECT_CLASS (gtk_spin_button_parent_class)->dispose (object);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]