diff options
author | Milan Crha <mcrha@redhat.com> | 2014-05-27 22:12:51 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2014-05-27 22:12:51 +0800 |
commit | 82076f2fae7f20df1163da08e272be18c9dcdb60 (patch) | |
tree | afc0a5b7f3729998cd440e9656bea52ff325ba7e /modules/mail | |
parent | a3db47909ec99d373949e67d6c64de06b398ae07 (diff) | |
download | gsoc2013-evolution-82076f2fae7f20df1163da08e272be18c9dcdb60.tar gsoc2013-evolution-82076f2fae7f20df1163da08e272be18c9dcdb60.tar.gz gsoc2013-evolution-82076f2fae7f20df1163da08e272be18c9dcdb60.tar.bz2 gsoc2013-evolution-82076f2fae7f20df1163da08e272be18c9dcdb60.tar.lz gsoc2013-evolution-82076f2fae7f20df1163da08e272be18c9dcdb60.tar.xz gsoc2013-evolution-82076f2fae7f20df1163da08e272be18c9dcdb60.tar.zst gsoc2013-evolution-82076f2fae7f20df1163da08e272be18c9dcdb60.zip |
Bug 730743 - Add an option to disable sender's photo search at gravatar.com
Diffstat (limited to 'modules/mail')
-rw-r--r-- | modules/mail/em-mailer-prefs.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/mail/em-mailer-prefs.c b/modules/mail/em-mailer-prefs.c index 0886269d60..6c30410fd4 100644 --- a/modules/mail/em-mailer-prefs.c +++ b/modules/mail/em-mailer-prefs.c @@ -1065,6 +1065,16 @@ em_mailer_prefs_construct (EMMailerPrefs *prefs, widget, "active", G_SETTINGS_BIND_DEFAULT); + widget = e_builder_get_widget (prefs->builder, "search_gravatar"); + g_settings_bind ( + settings, "search-gravatar-for-photo", + widget, "active", + G_SETTINGS_BIND_DEFAULT); + g_settings_bind ( + settings, "show-sender-photo", + widget, "sensitive", + G_SETTINGS_BIND_GET); + /* always de-sensitised until the user types something in the entry */ prefs->add_header = GTK_BUTTON (e_builder_get_widget (prefs->builder, "cmdHeadersAdd")); gtk_widget_set_sensitive ((GtkWidget *) prefs->add_header, FALSE); |