summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2006-12-29 02:56:33 +0000
committerCarsten Haitzler <raster@rasterman.com>2006-12-29 02:56:33 +0000
commite1f4f1c1cfc698aea919d555b6af355520a07b95 (patch)
treee27f2167e2137875c6c958c48db440cdc7786533 /legacy
parent8824be106eadebaab9747ccb6dab8e3365dbf2ac (diff)
custom screensaver patches
SVN revision: 27629
Diffstat (limited to 'legacy')
-rw-r--r--legacy/ecore/src/lib/ecore_x/Ecore_X.h6
-rw-r--r--legacy/ecore/src/lib/ecore_x/ecore_x_screensaver.c59
2 files changed, 64 insertions, 1 deletions
diff --git a/legacy/ecore/src/lib/ecore_x/Ecore_X.h b/legacy/ecore/src/lib/ecore_x/Ecore_X.h
index 912e3be15f..73f77a0b66 100644
--- a/legacy/ecore/src/lib/ecore_x/Ecore_X.h
+++ b/legacy/ecore/src/lib/ecore_x/Ecore_X.h
@@ -1367,6 +1367,12 @@ EAPI int ecore_x_xinerama_screen_geometry_get(int screen, int *x
1367EAPI int ecore_x_screensaver_event_available_get(void); 1367EAPI int ecore_x_screensaver_event_available_get(void);
1368EAPI void ecore_x_screensaver_timeout_set(double timeout); 1368EAPI void ecore_x_screensaver_timeout_set(double timeout);
1369EAPI double ecore_x_screensaver_timeout_get(void); 1369EAPI double ecore_x_screensaver_timeout_get(void);
1370EAPI void ecore_x_screensaver_blank_set(double timeout);
1371EAPI double ecore_x_screensaver_blank_get(void);
1372EAPI void ecore_x_screensaver_expose_set(double timeout);
1373EAPI double ecore_x_screensaver_expose_get(void);
1374EAPI void ecore_x_screensaver_interval_set(double timeout);
1375EAPI double ecore_x_screensaver_interval_get(void);
1370EAPI void ecore_x_screensaver_event_listen_set(int on); 1376EAPI void ecore_x_screensaver_event_listen_set(int on);
1371 1377
1372/* FIXME: these funcs need categorising */ 1378/* FIXME: these funcs need categorising */
diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_screensaver.c b/legacy/ecore/src/lib/ecore_x/ecore_x_screensaver.c
index 492a015970..7f1f7cb108 100644
--- a/legacy/ecore/src/lib/ecore_x/ecore_x_screensaver.c
+++ b/legacy/ecore/src/lib/ecore_x/ecore_x_screensaver.c
@@ -23,7 +23,7 @@ ecore_x_screensaver_timeout_set(double timeout)
23{ 23{
24 int pto, pint, pblank, pexpo; 24 int pto, pint, pblank, pexpo;
25 25
26 XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo); 26 XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
27 XSetScreenSaver(_ecore_x_disp, (int)timeout, 27 XSetScreenSaver(_ecore_x_disp, (int)timeout,
28 pint, pblank, pexpo); 28 pint, pblank, pexpo);
29} 29}
@@ -38,6 +38,63 @@ ecore_x_screensaver_timeout_get(void)
38} 38}
39 39
40EAPI void 40EAPI void
41ecore_x_screensaver_blank_set(double blank)
42{
43 int pto, pint, pblank, pexpo;
44
45 XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
46 XSetScreenSaver(_ecore_x_disp, pto,
47 pint, (int)blank, pexpo);
48}
49
50EAPI double
51ecore_x_screensaver_blank_get(void)
52{
53 int pto, pint, pblank, pexpo;
54
55 XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
56 return (double)pblank;
57}
58
59EAPI void
60ecore_x_screensaver_expose_set(double expose)
61{
62 int pto, pint, pblank, pexpo;
63
64 XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
65 XSetScreenSaver(_ecore_x_disp, pto,
66 pint, pblank, (int)expose);
67}
68
69EAPI double
70ecore_x_screensaver_expose_get(void)
71{
72 int pto, pint, pblank, pexpo;
73
74 XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
75 return (double)pexpo;
76}
77
78EAPI void
79ecore_x_screensaver_interval_set(double interval)
80{
81 int pto, pint, pblank, pexpo;
82
83 XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
84 XSetScreenSaver(_ecore_x_disp, pto,
85 (int)interval, pblank, pexpo);
86}
87
88EAPI double
89ecore_x_screensaver_interval_get(void)
90{
91 int pto, pint, pblank, pexpo;
92
93 XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
94 return (double)pint;
95}
96
97EAPI void
41ecore_x_screensaver_event_listen_set(int on) 98ecore_x_screensaver_event_listen_set(int on)
42{ 99{
43#ifdef ECORE_XSS 100#ifdef ECORE_XSS