Mercurial > pidgin.yaz
diff console/gntaccount.c @ 13980:c9509bd42d7a
[gaim-migrate @ 16542]
Show the mail-notification checkbox in the account-dialog only if
the prpl has support for it.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 23 Jul 2006 02:03:19 +0000 |
parents | a71678d2da16 |
children | a7b1d2ab9cb0 |
line wrap: on
line diff
--- a/console/gntaccount.c Sun Jul 23 01:10:06 2006 +0000 +++ b/console/gntaccount.c Sun Jul 23 02:03:19 2006 +0000 @@ -396,6 +396,10 @@ if (dialog->account) gnt_check_box_set_checked(GNT_CHECK_BOX(dialog->newmail), gaim_account_get_check_mail(dialog->account)); + if (!prplinfo || !(prplinfo->options & OPT_PROTO_MAIL_CHECK)) + gnt_widget_set_visible(dialog->newmail, FALSE); + else + gnt_widget_set_visible(dialog->newmail, TRUE); if (dialog->remember == NULL) dialog->remember = gnt_check_box_new(_("Remember password"));