~ubuntu-branches/ubuntu/saucy/lordsawar/saucy

« back to all changes in this revision

Viewing changes to src/gui/ruin-rewarded-dialog.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese, Barry deFreese
  • Date: 2008-12-20 13:52:12 UTC
  • mfrom: (1.1.6 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20081220135212-noeb2w3y98ebo7o9
Tags: 0.1.4-1
[ Barry deFreese ]
* New upstream release.
* Move 0.0.8-2.1 changelog entry to correct point in changelog.
* Make lordsawar-data suggest lordsawar.
* Update my e-mail address.
* Add build-depends on intltool, uuid-dev, and libboost-dev.
* Don't install locales since there are no translations currently.
* Add simple man page for new lordsawar-pbm binary.
* Drop gcc4.3 patches as they have been fixed upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include "glade-helpers.h"
28
28
#include "image-helpers.h"
29
29
#include "input-helpers.h"
30
 
#include "../ucompose.hpp"
31
 
#include "../defs.h"
32
 
#include "../GameMap.h"
33
 
#include "../File.h"
34
 
#include "../sound.h"
35
 
#include "../reward.h"
36
 
#include "../ruin.h"
 
30
#include "ucompose.hpp"
 
31
#include "defs.h"
 
32
#include "GameMap.h"
 
33
#include "File.h"
 
34
#include "sound.h"
 
35
#include "reward.h"
 
36
#include "ruin.h"
37
37
 
38
38
 
39
39
RuinRewardedDialog::RuinRewardedDialog(Reward_Ruin *reward)
45
45
    Gtk::Dialog *d = 0;
46
46
    xml->get_widget("dialog", d);
47
47
    dialog.reset(d);
 
48
    decorate(dialog.get());
 
49
    window_closed.connect(sigc::mem_fun(dialog.get(), &Gtk::Dialog::hide));
48
50
 
49
51
    xml->get_widget("map_image", map_image);
50
52
 
56
58
    xml->get_widget("map_eventbox", map_eventbox);
57
59
 
58
60
    xml->get_widget("label", label);
59
 
    dialog->set_title(_("A Sage!"));
 
61
    set_title(_("A Sage!"));
60
62
 
61
63
    d_reward = reward;
62
64
}
75
77
void RuinRewardedDialog::run()
76
78
{
77
79
  ruinmap->resize();
78
 
  ruinmap->draw();
 
80
  ruinmap->draw(Playerlist::getActiveplayer());
79
81
 
80
82
  Glib::ustring s;
81
83
  s += String::ucompose(_("The sages show thee the site of %1\n"),