~ubuntu-branches/debian/squeeze/gmsh/squeeze

« back to all changes in this revision

Viewing changes to Common/GmshMessage.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme, Christophe Prud'homme
  • Date: 2009-09-27 17:36:40 UTC
  • mfrom: (1.4.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20090927173640-meoeywl4f5hq5qas
Tags: 2.4.2.dfsg-1
[Christophe Prud'homme]
* New upstream release
  + solver code refactoring
  + better IDE integration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
451
451
  if(FlGui::available()){
452
452
    char defaultstr[256];
453
453
    sprintf(defaultstr, "%.16g", defaultval);
454
 
    const char *ret = fl_input(text, defaultstr);
 
454
    const char *ret = fl_input(text, "%s", defaultstr);
455
455
    if(!ret)
456
456
      return defaultval;
457
457
    else
469
469
}
470
470
 
471
471
bool Msg::GetBinaryAnswer(const char *question, const char *yes, 
472
 
                              const char *no, bool defaultval)
 
472
                          const char *no, bool defaultval)
473
473
{
474
474
  // if a callback is given let's assume we don't want to be bothered
475
475
  // with interactive stuff
477
477
 
478
478
#if defined(HAVE_FLTK)
479
479
  if(FlGui::available()){
480
 
    if(fl_choice(question, no, yes, NULL))
 
480
    if(fl_choice(question, no, yes, NULL, ""))
481
481
      return true;
482
482
    else
483
483
      return false;