X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=cut-n-paste%2Ftotem-screensaver%2Ftotem-scrsaver.h;h=f3301c8ea0fc80dd9419e17998c926c1dc52b7f0;hb=3653856f03c6a5fefc3b6ea67bd789650b5bfa1e;hp=f34fb15b4a77f7df5aa6c4a6bd5e31c622994108;hpb=949bd66322de613217672824798fbc7973c8b314;p=evince.git diff --git a/cut-n-paste/totem-screensaver/totem-scrsaver.h b/cut-n-paste/totem-screensaver/totem-scrsaver.h index f34fb15b..f3301c8e 100644 --- a/cut-n-paste/totem-screensaver/totem-scrsaver.h +++ b/cut-n-paste/totem-screensaver/totem-scrsaver.h @@ -13,22 +13,25 @@ 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. + write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301 USA. Author: Bastien Nocera */ -#include +#ifndef TOTEM_SCRSAVER_H +#define TOTEM_SCRSAVER_H + #include +G_BEGIN_DECLS + #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; @@ -39,11 +42,16 @@ struct TotemScrsaver { }; struct TotemScrsaverClass { - GObjectClass parent_class; + GObjectClass parent_class; }; -GType totem_scrsaver_get_type (void); -TotemScrsaver *totem_scrsaver_new (void); +GType totem_scrsaver_get_type (void) G_GNUC_CONST; +TotemScrsaver *totem_scrsaver_new (void); void totem_scrsaver_enable (TotemScrsaver *scr); void totem_scrsaver_disable (TotemScrsaver *scr); +void totem_scrsaver_set_state (TotemScrsaver *scr, + gboolean enable); + +G_END_DECLS +#endif /* !TOTEM_SCRSAVER_H */