Example #1
0
void AccountWindow::StringOption::updateValue()
{
  if (type == TYPE_PASSWORD) {
    setMasked(true);
    setValue(purple_account_get_password(account));
  }
  else if (type == TYPE_ALIAS)
    setValue(purple_account_get_alias(account));
  else
    setValue(purple_account_get_string(account,
          purple_account_option_get_setting(option),
          purple_account_option_get_default_string(option)));
}
Example #2
0
void Column::Private::setMasked(int row, bool mask)
{
    setMasked(Interval<int>(row,row), mask);
}