[vala] x11: add screensaver related functions



commit 1fa2c1a6b3cf8aaade19f2ec692189703a05e85c
Author: Andreas Obergrusberger <tradiaz yahoo de>
Date:   Sun Jun 20 12:46:29 2010 -0700

    x11: add screensaver related functions
    
    Fixes bug 622185.

 vapi/x11.vapi |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/vapi/x11.vapi b/vapi/x11.vapi
index 5257a98..1a631a7 100644
--- a/vapi/x11.vapi
+++ b/vapi/x11.vapi
@@ -36,6 +36,9 @@ namespace X {
 		[CCode (cname = "XAllPlanes")]
 		public static ulong get_all_planes ();
 
+		[CCode (cname = "XActivateScreenSaver")]
+		public void activate_screensaver ();
+
 		[CCode (cname = "XAddToSaveSet")]
 		public int add_to_save_set (Window w);
 
@@ -81,12 +84,18 @@ namespace X {
 		[CCode (cname = "XFlush")]
 		public int flush ();
 
+		[CCode (cname = "XForceScreenSaver")]
+		public void force_screensaver (int mode);
+
 		[CCode (cname = "XGetKeyboardMapping", array_length = false)]
 		public unowned uint[] get_keyboard_mapping (uint first_keycode, int keycode_count, ref int keysyms_per_keycode_return);
 
 		[CCode (cname = "XGetModifierMapping")]
 		public ModifierKeymap get_modifier_mapping ();
 
+		[CCode (cname = "XGetScreenSaver")]
+		public void get_screensaver (out int timeout, out int interval, out int prefer_blanking, out int allow_exposures);
+
 		[CCode (cname = "XGetSelectionOwner")]
 		public Window get_selection_owner (Atom selection);
 
@@ -174,6 +183,9 @@ namespace X {
 		[CCode (cname = "XReparentWindow")]
 		public int reparent_window (Window w, Window parent, int x, int y);
 
+		[CCode (cname = "XResetScreenSaver")]
+		public void reset_screensaver ();
+
 		[CCode (cname = "XResizeWindow")]
 		public int resize_window (Window w, uint width, uint height);
 
@@ -195,6 +207,9 @@ namespace X {
 		[CCode (cname = "XSetCloseDownMode")]
 		public void set_close_down_mode (int close_mode);
 
+		[CCode (cname = "XSetScreenSaver")]
+		public void set_screensaver (int timeout, int interval, int prefer_blanking, int allow_exposures);
+
 		[CCode (cname = "XSetSelectionOwner")]
 		public Window set_selection_owner (Atom selection, Window owner, int time);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]