summaryrefslogtreecommitdiffstats
path: root/client/gui
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-07-01 13:48:58 +0200
committerAlexander Larsson <alexl@redhat.com>2010-07-01 13:48:58 +0200
commit0e16cadc7077d448a5b91be205226620e2bc5191 (patch)
treeee3f97a1a9189956c8ca5aac25ed8975e5ee9787 /client/gui
parentd69fd9408cecff72a9261ed5c1cc2de77aee37bb (diff)
downloadspice-0e16cadc7077d448a5b91be205226620e2bc5191.tar.gz
spice-0e16cadc7077d448a5b91be205226620e2bc5191.tar.xz
spice-0e16cadc7077d448a5b91be205226620e2bc5191.zip
Make CEGUI optional
This makes the CEGUI dependency optional and off by default. Restoring previous behaviour of exiting on disconnect if disabled.
Diffstat (limited to 'client/gui')
-rw-r--r--client/gui/gui.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/gui/gui.h b/client/gui/gui.h
index d51a8c85..3b76b688 100644
--- a/client/gui/gui.h
+++ b/client/gui/gui.h
@@ -22,7 +22,9 @@ public:
void set_screen(RedScreen* screen); //show and hide
Application& get_application() { return _app;}
+#ifdef USE_GUI
CEGUI::System& gui_system() { return *_gui_system;}
+#endif // USE_GUI
void set_state(Application::State state);
bool is_visible() { return !!_dialog;}
@@ -87,8 +89,10 @@ private:
Application& _app;
Application::State _state;
RedPixmapSw* _pixmap;
+#ifdef USE_GUI
CEGUI::SoftRenderer* _renderer;
CEGUI::System* _gui_system;
+#endif // USE_GUI
Dialog* _dialog;
uint64_t _prev_time;
TabFactorys _tab_factorys;
@@ -100,7 +104,9 @@ class GUI::Tab {
public:
virtual ~Tab() {}
+#ifdef USE_GUI
virtual CEGUI::Window& get_root_window() = 0;
+#endif // USE_GUI
virtual const std::string& get_name() = 0;
};