From ee8a67fcfd878209788beb4e2ca1b00e3e99b0ba Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 13 May 2010 12:46:05 +0000 Subject: [shell] Pass the GDBusConnection to TotemScrsaver We already have a connection, so just pass it to TotemScrsaver. --- (limited to 'cut-n-paste/totem-screensaver/totem-scrsaver.h') diff --git a/cut-n-paste/totem-screensaver/totem-scrsaver.h b/cut-n-paste/totem-screensaver/totem-scrsaver.h index ba01bc5..d175896 100644 --- a/cut-n-paste/totem-screensaver/totem-scrsaver.h +++ b/cut-n-paste/totem-screensaver/totem-scrsaver.h @@ -19,8 +19,16 @@ Author: Bastien Nocera */ +#ifndef TOTEM_SCRSAVER_H +#define TOTEM_SCRSAVER_H + #include #include +#ifdef ENABLE_DBUS +#include +#endif + +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)) @@ -28,7 +36,6 @@ #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; @@ -43,9 +50,16 @@ struct TotemScrsaverClass { }; GType totem_scrsaver_get_type (void); +#ifdef ENABLE_DBUS +TotemScrsaver *totem_scrsaver_new (GDBusConnection *connection); +#else TotemScrsaver *totem_scrsaver_new (void); +#endif 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 */ -- cgit v0.9.1