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 /composer | |
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 'composer')
-rw-r--r-- | composer/e-msg-composer.c | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index d4e45d4d15..0ea116f6dc 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -1776,17 +1776,6 @@ msg_composer_get_property (GObject *object, } static void -msg_composer_dispose (GObject *object) -{ - EMsgComposer *composer = E_MSG_COMPOSER (object); - - e_composer_private_dispose (composer); - - /* Chain up to parent's dispose() method. */ - G_OBJECT_CLASS (e_msg_composer_parent_class)->dispose (object); -} - -static void msg_composer_finalize (GObject *object) { EMsgComposer *composer = E_MSG_COMPOSER (object); @@ -1951,7 +1940,7 @@ msg_composer_constructed (GObject *object) } static void -msg_composer_destroy (GtkObject *object) +msg_composer_dispose (GObject *object) { EMsgComposer *composer = E_MSG_COMPOSER (object); EShell *shell; @@ -1969,8 +1958,11 @@ msg_composer_destroy (GtkObject *object) g_signal_handlers_disconnect_by_func ( shell, msg_composer_prepare_for_quit_cb, composer); - /* Chain up to parent's destroy() method. */ - GTK_OBJECT_CLASS (e_msg_composer_parent_class)->destroy (object); + e_composer_private_dispose (composer); + + /* Chain up to parent's dispose() method. */ + if (G_OBJECT_CLASS (e_msg_composer_parent_class)->dispose) + G_OBJECT_CLASS (e_msg_composer_parent_class)->dispose (object); } static void @@ -2231,7 +2223,6 @@ static void e_msg_composer_class_init (EMsgComposerClass *class) { GObjectClass *object_class; - GtkObjectClass *gtk_object_class; GtkWidgetClass *widget_class; GtkhtmlEditorClass *editor_class; @@ -2244,9 +2235,6 @@ e_msg_composer_class_init (EMsgComposerClass *class) object_class->finalize = msg_composer_finalize; object_class->constructed = msg_composer_constructed; - gtk_object_class = GTK_OBJECT_CLASS (class); - gtk_object_class->destroy = msg_composer_destroy; - widget_class = GTK_WIDGET_CLASS (class); widget_class->map = msg_composer_map; widget_class->key_press_event = msg_composer_key_press_event; |