[gnome-settings-daemon] tests: Remove hard-coded enum
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] tests: Remove hard-coded enum
- Date: Mon, 21 Jan 2013 08:23:46 +0000 (UTC)
commit 4628fe29e4f19d9a6d3eb860d0275006929dede8
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jan 21 09:22:09 2013 +0100
tests: Remove hard-coded enum
It's now autogenerated where it's used.
tests/gsdtestcase.py | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/tests/gsdtestcase.py b/tests/gsdtestcase.py
index 5b93365..6efb3f2 100644
--- a/tests/gsdtestcase.py
+++ b/tests/gsdtestcase.py
@@ -34,14 +34,6 @@ if subprocess.call(['which', 'gnome-session'], stdout=subprocess.PIPE) != 0:
top_builddir = os.environ.get('TOP_BUILDDIR',
os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
-# from gnome-session/gsm-inhibitor.h
-GSM_INHIBITOR_FLAG_LOGOUT = 1 << 0
-GSM_INHIBITOR_FLAG_SWITCH_USER = 1 << 1
-GSM_INHIBITOR_FLAG_SUSPEND = 1 << 2
-GSM_INHIBITOR_FLAG_IDLE = 1 << 3
-GSM_INHIBITOR_FLAG_AUTOMOUNT = 1 << 4
-
-
def set_nonblock(fd):
'''Set a file object to non-blocking'''
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]