~ubuntu-branches/ubuntu/trusty/lordsawar/trusty

« back to all changes in this revision

Viewing changes to src/gui/main.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:
28
28
#include "main.h"
29
29
 
30
30
#include "driver.h"
31
 
#include "../defs.h"
32
 
#include "../timing.h"
 
31
#include "defs.h"
 
32
#include "File.h"
 
33
#include "Configuration.h"
 
34
#include "timing.h"
33
35
 
34
36
 
35
37
struct Main::Impl: public sigc::trackable 
50
52
    singleton = this;
51
53
 
52
54
    start_test_scenario = false;
 
55
    start_stress_test = false;
 
56
    start_robots = 0;
 
57
    load_filename = "";
 
58
    turn_filename = "";
 
59
    record = "";
53
60
    
 
61
    Glib::thread_init();
54
62
    try
55
63
    {
56
64
        impl->gtk_main.reset(new Gtk::Main(argc, argv));
57
65
 
58
 
        g_set_application_name(_("LordsAWar!"));
 
66
        g_set_application_name("LordsAWar!");
59
67
 
60
68
        Timing::instance().timer_registered.connect(
61
69
            sigc::mem_fun(*impl, &Main::Impl::on_timer_registered));
92
100
 
93
101
void Main::start_main_loop()
94
102
{
 
103
    if (Configuration::s_decorated)
 
104
      Gtk::RC::add_default_file(File::getMiscFile("gtkrc"));
 
105
 
95
106
    try
96
107
    {
97
 
        impl->driver.reset(new Driver);
 
108
        impl->driver.reset(new Driver(load_filename));
98
109
        impl->gtk_main->run();
99
110
    }
100
111
    catch (const Glib::Error &ex) {