diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-11-10 11:40:00 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-11-11 04:54:43 +0800 |
commit | 2c4ae5e7685c462f8d464448e4617b8dea029e72 (patch) | |
tree | c34f0cbb7c500ff70f10fce846631b0a948b341c /composer | |
parent | 583da46b8caf4b2a8b548b03c38fe0e84164abfb (diff) | |
download | gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar.gz gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar.bz2 gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar.lz gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar.xz gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar.zst gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'composer')
-rw-r--r-- | composer/e-composer-header.c | 4 | ||||
-rw-r--r-- | composer/e-composer-name-header.c | 6 | ||||
-rw-r--r-- | composer/e-msg-composer.c | 4 |
3 files changed, 9 insertions, 5 deletions
diff --git a/composer/e-composer-header.c b/composer/e-composer-header.c index 83c4afd49e..b509b53d0d 100644 --- a/composer/e-composer-header.c +++ b/composer/e-composer-header.c @@ -379,7 +379,7 @@ e_composer_header_set_sensitive (EComposerHeader *header, { g_return_if_fail (E_IS_COMPOSER_HEADER (header)); - if ((header->priv->sensitive ? 1 : 0) == (sensitive ? 1 : 0)) + if (header->priv->sensitive == sensitive) return; header->priv->sensitive = sensitive; @@ -401,7 +401,7 @@ e_composer_header_set_visible (EComposerHeader *header, { g_return_if_fail (E_IS_COMPOSER_HEADER (header)); - if ((header->priv->visible ? 1 : 0) == (visible ? 1 : 0)) + if (header->priv->visible == visible) return; header->priv->visible = visible; diff --git a/composer/e-composer-name-header.c b/composer/e-composer-name-header.c index 7f080c9071..86216d279f 100644 --- a/composer/e-composer-name-header.c +++ b/composer/e-composer-name-header.c @@ -121,7 +121,8 @@ composer_name_header_visible_changed_cb (EComposerNameHeader *header) label = e_composer_header_get_label (E_COMPOSER_HEADER (header)); dialog = e_name_selector_peek_dialog (priv->name_selector); - e_name_selector_dialog_set_section_visible (dialog, label, + e_name_selector_dialog_set_section_visible ( + dialog, label, e_composer_header_get_visible (E_COMPOSER_HEADER (header))); } @@ -221,7 +222,8 @@ composer_name_header_constructed (GObject *object) NULL); E_COMPOSER_HEADER (object)->input_widget = g_object_ref_sink (entry); - g_signal_connect_swapped (object, "notify::visible", + g_signal_connect_swapped ( + object, "notify::visible", G_CALLBACK (composer_name_header_visible_changed_cb), object); /* Chain up to parent's constructed() method. */ diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 777b7e7423..8354afad85 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -3612,7 +3612,9 @@ msg_composer_save_to_drafts_cb (EMsgComposer *composer, g_object_unref (message); if (e_msg_composer_is_exiting (composer)) - g_object_weak_ref (G_OBJECT (context->activity), (GWeakNotify) gtk_widget_destroy, composer); + g_object_weak_ref ( + G_OBJECT (context->activity), + (GWeakNotify) gtk_widget_destroy, composer); async_context_free (context); } |