~ubuntu-branches/ubuntu/oneiric/groundhog/oneiric

« back to all changes in this revision

Viewing changes to src/solved_dialog.cc

  • Committer: Bazaar Package Importer
  • Author(s): Ying-Chun Liu (PaulLiu)
  • Date: 2008-03-18 00:14:15 UTC
  • Revision ID: james.westby@ubuntu.com-20080318001415-5wjp523bg83wekds
Tags: 1.4-9
* New maintainer (Closes: Bug#465949)
* Use Homepage: instead of the pseudo-header in long description
* Add debian/compat to 4
* Use quilt to handle patches
* Bump Standard Version to 3.7.3
* Remove empty directories in debian/dirs
* Use autoconf/automake to generate configure
* Include Swedish translation sv.po (Closes: Bug#346520)
* Refine debian/copyright file
* Only use --build on configure in debian/rules when host type is same
* Remove unnecessary dh_* and comments in debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
17
 */
18
18
 
19
 
#include <sstream>
20
 
#include <string>
21
 
using namespace std;
 
19
#include <strstream.h>
22
20
 
23
21
#include "intl.h"
24
22
#include "solved_dialog.h"
35
33
void
36
34
SolvedDialog::SetLabel(int moves)
37
35
{
38
 
   ostringstream ost;
39
 
   ost << _(" Game solved in ") << moves << _(" moves!") << ends;
40
 
   string info = ost.str();
41
 
   gtk_label_set(GTK_LABEL(_label), info.c_str());
 
36
   char info[128];
 
37
   std::ostrstream ost(info, sizeof(info));
 
38
 
 
39
   ost << _(" Game solved in ") << moves << _(" moves!") << std::ends;
 
40
   gtk_label_set(GTK_LABEL(_label), info);
42
41
}