diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-12-01 10:53:20 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-02-20 23:04:25 +0800 |
commit | 23f5773903d64a554d977ae7d0ebbaca73528f1f (patch) | |
tree | 104e1a59da8bf96b004bce204b79f47bbe0a6d13 /plugins/webdav-account-setup | |
parent | 49bc4c2d765ee1780c23fdc9f42152850dabb220 (diff) | |
download | gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar.gz gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar.bz2 gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar.lz gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar.xz gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar.zst gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'plugins/webdav-account-setup')
-rw-r--r-- | plugins/webdav-account-setup/webdav-contacts-source.c | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/plugins/webdav-account-setup/webdav-contacts-source.c b/plugins/webdav-account-setup/webdav-contacts-source.c index 1d4ab22e23..b611852db3 100644 --- a/plugins/webdav-account-setup/webdav-contacts-source.c +++ b/plugins/webdav-account-setup/webdav-contacts-source.c @@ -59,7 +59,8 @@ ensure_webdav_contacts_source_group (void) { ESourceList *source_list; - source_list = e_source_list_new_for_gconf_default("/apps/evolution/addressbook/sources"); + source_list = e_source_list_new_for_gconf_default ( + "/apps/evolution/addressbook/sources"); if (source_list == NULL) { return; @@ -75,7 +76,8 @@ remove_webdav_contacts_source_group (void) ESourceList *source_list; ESourceGroup *group; - source_list = e_source_list_new_for_gconf_default("/apps/evolution/addressbook/sources"); + source_list = e_source_list_new_for_gconf_default ( + "/apps/evolution/addressbook/sources"); if (source_list == NULL) { return; @@ -157,7 +159,7 @@ static void set_source_from_ui (ui_data *data) { ESource *source = data->source; - gboolean avoid_ifmatch = gtk_toggle_button_get_active (data->avoid_ifmatch_toggle); + gboolean avoid_ifmatch; const gchar *url = gtk_entry_get_text (data->url_entry); SoupURI *suri = soup_uri_new (url); gchar *url_noprotocol; @@ -166,6 +168,7 @@ set_source_from_ui (ui_data *data) if (!suri) return; + avoid_ifmatch = gtk_toggle_button_get_active (data->avoid_ifmatch_toggle); e_source_set_property(source, "avoid_ifmatch", avoid_ifmatch ? "1" : "0"); /* put username into uri */ @@ -290,11 +293,21 @@ plugin_webdav_contacts (EPlugin *epl, uidata->box = vbox2; g_object_set_data_full(G_OBJECT(epl), "wwidget", uidata, destroy_ui_data); - g_signal_connect (uidata->box, "destroy", G_CALLBACK (gtk_widget_destroyed), &uidata->box); + g_signal_connect ( + uidata->box, "destroy", + G_CALLBACK (gtk_widget_destroyed), &uidata->box); + + g_signal_connect_swapped ( + uidata->username_entry, "changed", + G_CALLBACK (set_source_from_ui), uidata); + + g_signal_connect_swapped ( + uidata->url_entry, "changed", + G_CALLBACK (set_source_from_ui), uidata); - g_signal_connect_swapped (G_OBJECT(uidata->username_entry), "changed", G_CALLBACK (set_source_from_ui), uidata); - g_signal_connect_swapped (G_OBJECT(uidata->url_entry), "changed", G_CALLBACK (set_source_from_ui), uidata); - g_signal_connect_swapped (G_OBJECT(uidata->avoid_ifmatch_toggle), "toggled", G_CALLBACK (set_source_from_ui), uidata); + g_signal_connect_swapped ( + uidata->avoid_ifmatch_toggle, "toggled", + G_CALLBACK (set_source_from_ui), uidata); return NULL; } |