summaryrefslogtreecommitdiff
path: root/unity-shared
diff options
authorAndrea Azzarone <azzaronea@gmail.com>2014-10-21 17:31:27 +0200
committerAndrea Azzarone <azzaronea@gmail.com>2014-10-21 17:31:27 +0200
commitbddd3ad3768c0993e9bfdfac32fcf4cdac49c54f (patch)
tree0dd4c03c219d05a633d6dcc0769c2b2f4889eaf7 /unity-shared
parentffe6978c20fee2037a6182cb1b301e90bf7bc0ec (diff)
Remove suspending/resuming signals from UScreen.
(bzr r3874.1.10)
Diffstat (limited to 'unity-shared')
-rw-r--r--unity-shared/UScreen.cpp9
-rw-r--r--unity-shared/UScreen.h4
2 files changed, 0 insertions, 13 deletions
diff --git a/unity-shared/UScreen.cpp b/unity-shared/UScreen.cpp
index 91407a0c7..26f2a5d7c 100644
--- a/unity-shared/UScreen.cpp
+++ b/unity-shared/UScreen.cpp
@@ -30,18 +30,9 @@ UScreen* UScreen::default_screen_ = nullptr;
UScreen::UScreen()
: primary_(0)
, screen_(gdk_screen_get_default(), glib::AddRef())
- , proxy_("org.freedesktop.login1",
- "/org/freedesktop/login1",
- "org.freedesktop.login1.Manager",
- G_BUS_TYPE_SYSTEM)
{
size_changed_signal_.Connect(screen_, "size-changed", sigc::mem_fun(this, &UScreen::Changed));
monitors_changed_signal_.Connect(screen_, "monitors-changed", sigc::mem_fun(this, &UScreen::Changed));
- proxy_.Connect("PrepareForSleep", [this] (GVariant* data) {
- gboolean val;
- g_variant_get(data, "(b)", &val);
- val ? suspending.emit() : resuming.emit();
- });
Refresh();
}
diff --git a/unity-shared/UScreen.h b/unity-shared/UScreen.h
index 59d020bc5..8d5127ded 100644
--- a/unity-shared/UScreen.h
+++ b/unity-shared/UScreen.h
@@ -28,7 +28,6 @@
#include <UnityCore/GLibSignal.h>
#include <UnityCore/GLibSource.h>
#include <UnityCore/GLibWrapper.h>
-#include <UnityCore/GLibDBusProxy.h>
namespace unity
{
@@ -51,8 +50,6 @@ public:
// <void, primary_monitor, monitors>
sigc::signal<void, int, std::vector<nux::Geometry> const&> changed;
- sigc::signal<void> suspending;
- sigc::signal<void> resuming;
const std::string GetMonitorName(int output_number) const;
int GetPluggedMonitorsNumber() const;
@@ -68,7 +65,6 @@ protected:
private:
glib::Object<GdkScreen> screen_;
- glib::DBusProxy proxy_;
glib::Signal<void, GdkScreen*> size_changed_signal_;
glib::Signal<void, GdkScreen*> monitors_changed_signal_;
glib::Source::UniquePtr refresh_idle_;