/* Given a string of the form "<recent name>:<recent value>", as might appear as an argument to a "-o" option, parse it and set the recent value in question. Return an indication of whether it succeeded or failed in some fashion.  */
int recent_set_arg(char *prefarg)
/* Given a string of the form "<recent name>:<recent value>", as might appear as an argument to a "-o" option, parse it and set the recent value in question. Return an indication of whether it succeeded or failed in some fashion.  */
int recent_set_arg(char *prefarg)
{
  gchar *p, *colonp;
  int ret;
  colonp = strchr(prefarg, ':');
  if (colonp == NULL)
    return PREFS_SET_SYNTAX_ERR;
  p = colonp;
  *p++ = '\0';
  while (g_ascii_isspace(*p))
    p++;
  if (*p == '\0') {
    *colonp = ':';
    return PREFS_SET_SYNTAX_ERR;
  }
  ret = read_set_recent_pair_static(prefarg, p, NULL, TRUE);
  *colonp = ':';
  return ret;
}