diff options
author | Milan Crha <mcrha@redhat.com> | 2010-10-07 01:26:08 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-10-07 01:26:08 +0800 |
commit | 1c6f2d154e74f908e2c4a137de0233b5faf4f6b6 (patch) | |
tree | 77a33236e48ed59a7c7c65e8a1c91481dd09f3eb /mail/em-folder-selector.c | |
parent | 1b2fefb086c3e34089beb8b89b22d79005cc7725 (diff) | |
download | gsoc2013-evolution-1c6f2d154e74f908e2c4a137de0233b5faf4f6b6.tar.gz gsoc2013-evolution-1c6f2d154e74f908e2c4a137de0233b5faf4f6b6.tar.zst gsoc2013-evolution-1c6f2d154e74f908e2c4a137de0233b5faf4f6b6.zip |
Bug #631320 - GtkObject is gone in GTK3
Diffstat (limited to 'mail/em-folder-selector.c')
-rw-r--r-- | mail/em-folder-selector.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/mail/em-folder-selector.c b/mail/em-folder-selector.c index e20b9f711b..e4e9bbdd3a 100644 --- a/mail/em-folder-selector.c +++ b/mail/em-folder-selector.c @@ -48,7 +48,7 @@ folder_selector_finalize (GObject *object) } static void -folder_selector_destroy (GtkObject *object) +folder_selector_dispose (GObject *object) { EMFolderSelector *emfs = EM_FOLDER_SELECTOR (object); GtkTreeModel *model; @@ -59,23 +59,21 @@ folder_selector_destroy (GtkObject *object) emfs->created_id = 0; } - /* Chain up to parent's destroy() method. */ - GTK_OBJECT_CLASS (parent_class)->destroy (object); + /* Chain up to parent's dispose() method. */ + if (G_OBJECT_CLASS (parent_class)->dispose) + G_OBJECT_CLASS (parent_class)->dispose (object); } static void folder_selector_class_init (EMFolderSelectorClass *class) { GObjectClass *object_class; - GtkObjectClass *gtk_object_class; parent_class = g_type_class_peek_parent (class); object_class = G_OBJECT_CLASS (class); object_class->finalize = folder_selector_finalize; - - gtk_object_class = GTK_OBJECT_CLASS (class); - gtk_object_class->destroy = folder_selector_destroy; + object_class->dispose = folder_selector_dispose; } static void |