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=ab9c820db7ec6588e6dfc67dff65e4011c723302;hb=c9525f15920d12cb778b342f30dacf9e3782204a;hp=e84299a072fd35c82350b47c02f4518408fe83ad;hpb=8ac50cf59cc976bd26bcb5575a4443d0319463ba;p=evince.git diff --git a/cut-n-paste/totem-screensaver/totem-scrsaver.h b/cut-n-paste/totem-screensaver/totem-scrsaver.h index e84299a0..ab9c820d 100644 --- a/cut-n-paste/totem-screensaver/totem-scrsaver.h +++ b/cut-n-paste/totem-screensaver/totem-scrsaver.h @@ -13,8 +13,8 @@ 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 */ @@ -22,10 +22,6 @@ #include #include -#ifdef ENABLE_DBUS -#include -#endif - #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)) @@ -46,12 +42,10 @@ struct TotemScrsaverClass { GObjectClass parent_class; }; -GType totem_scrsaver_get_type (void); -#ifdef ENABLE_DBUS -TotemScrsaver *totem_scrsaver_new (DBusGConnection *connection); -#else -TotemScrsaver *totem_scrsaver_new (); -#endif +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);