diff options
| author | Eleni Maria Stea <elenimaria.stea@canonical.com> | 2014-02-05 16:49:51 +0200 |
|---|---|---|
| committer | Eleni Maria Stea <elenimaria.stea@canonical.com> | 2014-02-05 16:49:51 +0200 |
| commit | b6dc4ce05578661bf0629021a22591fdb2888504 (patch) | |
| tree | 8033878e74d25588e2c6690bb9946894e2dd98f2 /unity-shared | |
| parent | b81dfd013fcbd7a02a599747dcbf68fc791217c4 (diff) | |
added GetScreen function that returns the GDKScreen
(bzr r3643.1.1)
Diffstat (limited to 'unity-shared')
| -rw-r--r-- | unity-shared/UScreen.cpp | 5 | ||||
| -rw-r--r-- | unity-shared/UScreen.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/unity-shared/UScreen.cpp b/unity-shared/UScreen.cpp index 869383824..9c4432305 100644 --- a/unity-shared/UScreen.cpp +++ b/unity-shared/UScreen.cpp @@ -96,6 +96,11 @@ nux::Geometry UScreen::GetScreenGeometry() return nux::Geometry(0, 0, width, height); } +const glib::Object<GdkScreen> &UScreen::GetScreen() const +{ + return screen_; +} + void UScreen::Changed(GdkScreen* screen) { if (refresh_idle_) diff --git a/unity-shared/UScreen.h b/unity-shared/UScreen.h index ff33d8e0a..0fa9a158d 100644 --- a/unity-shared/UScreen.h +++ b/unity-shared/UScreen.h @@ -52,6 +52,8 @@ public: sigc::signal<void, int, std::vector<nux::Geometry>&> changed; sigc::signal<void> resuming; + const glib::Object<GdkScreen> &GetScreen() const; + private: void Changed(GdkScreen* screen); void Refresh(); |
