aboutsummaryrefslogtreecommitdiffstats
path: root/modules/book-config-ldap
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-11-10 11:40:00 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-11-11 04:54:43 +0800
commit2c4ae5e7685c462f8d464448e4617b8dea029e72 (patch)
treec34f0cbb7c500ff70f10fce846631b0a948b341c /modules/book-config-ldap
parent583da46b8caf4b2a8b548b03c38fe0e84164abfb (diff)
downloadgsoc2013-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 'modules/book-config-ldap')
-rw-r--r--modules/book-config-ldap/e-source-ldap.c2
-rw-r--r--modules/book-config-ldap/evolution-book-config-ldap.c14
2 files changed, 8 insertions, 8 deletions
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");