[gtk/abolish-destroy: 12/23] shortcutssection: Use dispose instead of destroy
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/abolish-destroy: 12/23] shortcutssection: Use dispose instead of destroy
- Date: Tue, 5 May 2020 21:01:53 +0000 (UTC)
commit 176ae92bd771faacb85ba3db046f79be80e12749
Author: Matthias Clasen <mclasen redhat com>
Date: Tue May 5 16:50:07 2020 -0400
shortcutssection: Use dispose instead of destroy
The destroy vfunc is going away.
gtk/gtkshortcutssection.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkshortcutssection.c b/gtk/gtkshortcutssection.c
index 433d09909e..4df299fe1f 100644
--- a/gtk/gtkshortcutssection.c
+++ b/gtk/gtkshortcutssection.c
@@ -196,9 +196,9 @@ gtk_shortcuts_section_unmap (GtkWidget *widget)
}
static void
-gtk_shortcuts_section_destroy (GtkWidget *widget)
+gtk_shortcuts_section_dispose (GObject *object)
{
- GtkShortcutsSection *self = GTK_SHORTCUTS_SECTION (widget);
+ GtkShortcutsSection *self = GTK_SHORTCUTS_SECTION (object);
if (self->stack)
{
@@ -215,7 +215,7 @@ gtk_shortcuts_section_destroy (GtkWidget *widget)
g_list_free (self->groups);
self->groups = NULL;
- GTK_WIDGET_CLASS (gtk_shortcuts_section_parent_class)->destroy (widget);
+ G_OBJECT_CLASS (gtk_shortcuts_section_parent_class)->dispose (object);
}
static void
@@ -308,12 +308,12 @@ gtk_shortcuts_section_class_init (GtkShortcutsSectionClass *klass)
GtkContainerClass *container_class = GTK_CONTAINER_CLASS (klass);
object_class->finalize = gtk_shortcuts_section_finalize;
+ object_class->dispose = gtk_shortcuts_section_dispose;
object_class->get_property = gtk_shortcuts_section_get_property;
object_class->set_property = gtk_shortcuts_section_set_property;
widget_class->map = gtk_shortcuts_section_map;
widget_class->unmap = gtk_shortcuts_section_unmap;
- widget_class->destroy = gtk_shortcuts_section_destroy;
container_class->add = gtk_shortcuts_section_add;
container_class->remove = gtk_shortcuts_section_remove;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]