diff options
author | Wouter Bolsterlee <wbolster@cvs.gnome.org> | 2006-11-21 23:54:14 (GMT) |
---|---|---|
committer | Wouter Bolsterlee <wbolster@src.gnome.org> | 2006-11-21 23:54:14 (GMT) |
commit | 949bd66322de613217672824798fbc7973c8b314 (patch) | |
tree | a7f347ce58f77cd93be83e7e4cd3fa70932b2c2d /cut-n-paste/totem-screensaver/totem-scrsaver.h | |
parent | 3f6b889102d20dba9778902f42741b2fdcb47f9b (diff) |
cut-n-paste/totem-screensaver/.cvsignore
2006-11-22 Wouter Bolsterlee <wbolster@cvs.gnome.org>
* configure.ac:
* cut-n-paste/Makefile.am:
* cut-n-paste/totem-screensaver/.cvsignore
* cut-n-paste/totem-screensaver/Makefile.am:
* cut-n-paste/totem-screensaver/README:
* cut-n-paste/totem-screensaver/totem-scrsaver.c:
* cut-n-paste/totem-screensaver/totem-scrsaver.h:
* shell/Makefile.am:
* shell/ev-window.c: (ev_window_run_presentation),
(ev_window_stop_presentation), (ev_window_cmd_help_about),
(ev_window_init):
Implemented screensaver enabling/disabling for
presentation mode (not fullscreen mode). Code stolen
from Totem (with some minor tweaks). Fixes bug #338889.
Diffstat (limited to 'cut-n-paste/totem-screensaver/totem-scrsaver.h')
-rw-r--r-- | cut-n-paste/totem-screensaver/totem-scrsaver.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/cut-n-paste/totem-screensaver/totem-scrsaver.h b/cut-n-paste/totem-screensaver/totem-scrsaver.h new file mode 100644 index 0000000..f34fb15 --- /dev/null +++ b/cut-n-paste/totem-screensaver/totem-scrsaver.h @@ -0,0 +1,49 @@ +/* + Copyright (C) 2004, Bastien Nocera <hadess@hadess.net> + + The Gnome Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The Gnome Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the Gnome Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. + + Author: Bastien Nocera <hadess@hadess.net> + */ + +#include <glib.h> +#include <glib-object.h> + +#define TOTEM_TYPE_SCRSAVER (totem_scrsaver_get_type ()) +#define TOTEM_SCRSAVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOTEM_TYPE_SCRSAVER, TotemScrsaver)) +#define TOTEM_SCRSAVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOTEM_TYPE_SCRSAVER, TotemScrsaverClass)) +#define TOTEM_IS_SCRSAVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOTEM_TYPE_SCRSAVER)) +#define TOTEM_IS_SCRSAVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOTEM_TYPE_SCRSAVER)) + + +typedef struct TotemScrsaver TotemScrsaver; +typedef struct TotemScrsaverClass TotemScrsaverClass; +typedef struct TotemScrsaverPrivate TotemScrsaverPrivate; + +struct TotemScrsaver { + GObject parent; + TotemScrsaverPrivate *priv; +}; + +struct TotemScrsaverClass { + GObjectClass parent_class; +}; + +GType totem_scrsaver_get_type (void); +TotemScrsaver *totem_scrsaver_new (void); +void totem_scrsaver_enable (TotemScrsaver *scr); +void totem_scrsaver_disable (TotemScrsaver *scr); + |