From 2c4ae5e7685c462f8d464448e4617b8dea029e72 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 9 Nov 2012 22:40:00 -0500 Subject: Coding style and whitespace cleanup. --- modules/book-config-ldap/e-source-ldap.c | 2 +- modules/book-config-ldap/evolution-book-config-ldap.c | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'modules/book-config-ldap') diff --git a/modules/book-config-ldap/e-source-ldap.c b/modules/book-config-ldap/e-source-ldap.c index 42d8a08eab..854552f2f5 100644 --- a/modules/book-config-ldap/e-source-ldap.c +++ b/modules/book-config-ldap/e-source-ldap.c @@ -485,7 +485,7 @@ e_source_ldap_set_can_browse (ESourceLDAP *extension, { g_return_if_fail (E_IS_SOURCE_LDAP (extension)); - if ((extension->priv->can_browse ? 1 : 0) == (can_browse ? 1 : 0)) + if (extension->priv->can_browse == can_browse) return; extension->priv->can_browse = can_browse; diff --git a/modules/book-config-ldap/evolution-book-config-ldap.c b/modules/book-config-ldap/evolution-book-config-ldap.c index 3aa83de243..42cea3b5d5 100644 --- a/modules/book-config-ldap/evolution-book-config-ldap.c +++ b/modules/book-config-ldap/evolution-book-config-ldap.c @@ -871,9 +871,10 @@ book_config_ldap_insert_widgets (ESourceConfigBackend *backend, book_config_ldap_active_to_port, NULL, (GDestroyNotify) NULL); - /* "active" doesn't change when setting custom port in entry, - thus check also on the "changed" signal */ - g_signal_connect (context->port_combo, "changed", + /* "active" doesn't change when setting custom port + * in entry, so check also on the "changed" signal. */ + g_signal_connect ( + context->port_combo, "changed", G_CALLBACK (book_config_ldap_port_combo_changed), NULL); g_object_bind_property ( @@ -929,10 +930,9 @@ book_config_ldap_insert_widgets (ESourceConfigBackend *backend, G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE); - /* initialize values from UI into extension, if the source - is a fresh new source; bindings will take care of proper - values setting into extension properties - */ + /* Initialize values from UI into extension, if the source + * is a fresh new source; bindings will take care of proper + * values setting into extension properties. */ if (is_new_source) { g_object_notify (G_OBJECT (context->host_entry), "text"); g_object_notify (G_OBJECT (context->port_combo), "active"); -- cgit v1.2.3