mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-04 17:50:18 +00:00
spinbutton: Use dispose instead of destroy
The destroy vfunc is going away.
This commit is contained in:
parent
9f4cea190a
commit
c8066bcd8b
@ -261,6 +261,7 @@ enum
|
||||
static void gtk_spin_button_editable_init (GtkEditableInterface *iface);
|
||||
static void gtk_spin_button_cell_editable_init (GtkCellEditableIface *iface);
|
||||
static void gtk_spin_button_finalize (GObject *object);
|
||||
static void gtk_spin_button_dispose (GObject *object);
|
||||
static void gtk_spin_button_set_property (GObject *object,
|
||||
guint prop_id,
|
||||
const GValue *value,
|
||||
@ -269,7 +270,6 @@ 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_realize (GtkWidget *widget);
|
||||
static void gtk_spin_button_grab_notify (GtkWidget *widget,
|
||||
gboolean was_grabbed);
|
||||
@ -341,10 +341,10 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
|
||||
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class);
|
||||
|
||||
gobject_class->finalize = gtk_spin_button_finalize;
|
||||
gobject_class->dispose = gtk_spin_button_dispose;
|
||||
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;
|
||||
@ -1008,11 +1008,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
|
||||
|
Loading…
Reference in New Issue
Block a user