init
authortanya <tanya@tanin.oblgaz>
Wed, 24 Mar 2010 14:43:33 +0000 (16:43 +0200)
committertanya <tanya@tanin.oblgaz>
Wed, 24 Mar 2010 14:43:33 +0000 (16:43 +0200)
28 files changed:
applet/AUTHORS [new file with mode: 0644]
applet/ChangeLog [new file with mode: 0644]
applet/INSTALL [new file with mode: 0644]
applet/Makefile.am [new file with mode: 0644]
applet/NEWS [new file with mode: 0644]
applet/README [new file with mode: 0644]
applet/astrolib.c [new file with mode: 0644]
applet/autogen.sh [new file with mode: 0755]
applet/configure.ac [new file with mode: 0644]
applet/data/Makefile [new file with mode: 0644]
applet/data/Makefile.am [new file with mode: 0644]
applet/data/Makefile.in [new file with mode: 0644]
applet/data/background.png [new file with mode: 0644]
applet/data/cloud1.png [new file with mode: 0644]
applet/data/sky.png [new file with mode: 0644]
applet/data/sun.png [new file with mode: 0644]
applet/data/town.png [new file with mode: 0644]
applet/debian/changelog [new file with mode: 0644]
applet/debian/compat [new file with mode: 0644]
applet/debian/control [new file with mode: 0644]
applet/debian/copyright [new file with mode: 0644]
applet/debian/files [new file with mode: 0644]
applet/debian/hildon-timeout-home-widget-example.substvars [new file with mode: 0644]
applet/debian/rules [new file with mode: 0644]
applet/livewp-home-widget.c [new file with mode: 0644]
applet/livewp-home-widget.desktop [new file with mode: 0644]
applet/livewp-home-widget.desktop.in [new file with mode: 0644]
applet/livewp-home-widget.h [new file with mode: 0644]

diff --git a/applet/AUTHORS b/applet/AUTHORS
new file mode 100644 (file)
index 0000000..5445f75
--- /dev/null
@@ -0,0 +1,2 @@
+Vlad Vasiliev
+Tanya Makova
diff --git a/applet/ChangeLog b/applet/ChangeLog
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/applet/INSTALL b/applet/INSTALL
new file mode 100644 (file)
index 0000000..54caf7c
--- /dev/null
@@ -0,0 +1,229 @@
+Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software
+Foundation, Inc.
+
+   This file is free documentation; the Free Software Foundation gives
+unlimited permission to copy, distribute and modify it.
+
+Basic Installation
+==================
+
+   These are generic installation instructions.
+
+   The `configure' shell script attempts to guess correct values for
+various system-dependent variables used during compilation.  It uses
+those values to create a `Makefile' in each directory of the package.
+It may also create one or more `.h' files containing system-dependent
+definitions.  Finally, it creates a shell script `config.status' that
+you can run in the future to recreate the current configuration, and a
+file `config.log' containing compiler output (useful mainly for
+debugging `configure').
+
+   It can also use an optional file (typically called `config.cache'
+and enabled with `--cache-file=config.cache' or simply `-C') that saves
+the results of its tests to speed up reconfiguring.  (Caching is
+disabled by default to prevent problems with accidental use of stale
+cache files.)
+
+   If you need to do unusual things to compile the package, please try
+to figure out how `configure' could check whether to do them, and mail
+diffs or instructions to the address given in the `README' so they can
+be considered for the next release.  If you are using the cache, and at
+some point `config.cache' contains results you don't want to keep, you
+may remove or edit it.
+
+   The file `configure.ac' (or `configure.in') is used to create
+`configure' by a program called `autoconf'.  You only need
+`configure.ac' if you want to change it or regenerate `configure' using
+a newer version of `autoconf'.
+
+The simplest way to compile this package is:
+
+  1. `cd' to the directory containing the package's source code and type
+     `./configure' to configure the package for your system.  If you're
+     using `csh' on an old version of System V, you might need to type
+     `sh ./configure' instead to prevent `csh' from trying to execute
+     `configure' itself.
+
+     Running `configure' takes awhile.  While running, it prints some
+     messages telling which features it is checking for.
+
+  2. Type `make' to compile the package.
+
+  3. Optionally, type `make check' to run any self-tests that come with
+     the package.
+
+  4. Type `make install' to install the programs and any data files and
+     documentation.
+
+  5. You can remove the program binaries and object files from the
+     source code directory by typing `make clean'.  To also remove the
+     files that `configure' created (so you can compile the package for
+     a different kind of computer), type `make distclean'.  There is
+     also a `make maintainer-clean' target, but that is intended mainly
+     for the package's developers.  If you use it, you may have to get
+     all sorts of other programs in order to regenerate files that came
+     with the distribution.
+
+Compilers and Options
+=====================
+
+   Some systems require unusual options for compilation or linking that
+the `configure' script does not know about.  Run `./configure --help'
+for details on some of the pertinent environment variables.
+
+   You can give `configure' initial values for configuration parameters
+by setting variables in the command line or in the environment.  Here
+is an example:
+
+     ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
+
+   *Note Defining Variables::, for more details.
+
+Compiling For Multiple Architectures
+====================================
+
+   You can compile the package for more than one kind of computer at the
+same time, by placing the object files for each architecture in their
+own directory.  To do this, you must use a version of `make' that
+supports the `VPATH' variable, such as GNU `make'.  `cd' to the
+directory where you want the object files and executables to go and run
+the `configure' script.  `configure' automatically checks for the
+source code in the directory that `configure' is in and in `..'.
+
+   If you have to use a `make' that does not support the `VPATH'
+variable, you have to compile the package for one architecture at a
+time in the source code directory.  After you have installed the
+package for one architecture, use `make distclean' before reconfiguring
+for another architecture.
+
+Installation Names
+==================
+
+   By default, `make install' will install the package's files in
+`/usr/local/bin', `/usr/local/man', etc.  You can specify an
+installation prefix other than `/usr/local' by giving `configure' the
+option `--prefix=PATH'.
+
+   You can specify separate installation prefixes for
+architecture-specific files and architecture-independent files.  If you
+give `configure' the option `--exec-prefix=PATH', the package will use
+PATH as the prefix for installing programs and libraries.
+Documentation and other data files will still use the regular prefix.
+
+   In addition, if you use an unusual directory layout you can give
+options like `--bindir=PATH' to specify different values for particular
+kinds of files.  Run `configure --help' for a list of the directories
+you can set and what kinds of files go in them.
+
+   If the package supports it, you can cause programs to be installed
+with an extra prefix or suffix on their names by giving `configure' the
+option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
+
+Optional Features
+=================
+
+   Some packages pay attention to `--enable-FEATURE' options to
+`configure', where FEATURE indicates an optional part of the package.
+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
+is something like `gnu-as' or `x' (for the X Window System).  The
+`README' should mention any `--enable-' and `--with-' options that the
+package recognizes.
+
+   For packages that use the X Window System, `configure' can usually
+find the X include and library files automatically, but if it doesn't,
+you can use the `configure' options `--x-includes=DIR' and
+`--x-libraries=DIR' to specify their locations.
+
+Specifying the System Type
+==========================
+
+   There may be some features `configure' cannot figure out
+automatically, but needs to determine by the type of machine the package
+will run on.  Usually, assuming the package is built to be run on the
+_same_ architectures, `configure' can figure that out, but if it prints
+a message saying it cannot guess the machine type, give it the
+`--build=TYPE' option.  TYPE can either be a short name for the system
+type, such as `sun4', or a canonical name which has the form:
+
+     CPU-COMPANY-SYSTEM
+
+where SYSTEM can have one of these forms:
+
+     OS KERNEL-OS
+
+   See the file `config.sub' for the possible values of each field.  If
+`config.sub' isn't included in this package, then this package doesn't
+need to know the machine type.
+
+   If you are _building_ compiler tools for cross-compiling, you should
+use the `--target=TYPE' option to select the type of system they will
+produce code for.
+
+   If you want to _use_ a cross compiler, that generates code for a
+platform different from the build platform, you should specify the
+"host" platform (i.e., that on which the generated programs will
+eventually be run) with `--host=TYPE'.
+
+Sharing Defaults
+================
+
+   If you want to set default values for `configure' scripts to share,
+you can create a site shell script called `config.site' that gives
+default values for variables like `CC', `cache_file', and `prefix'.
+`configure' looks for `PREFIX/share/config.site' if it exists, then
+`PREFIX/etc/config.site' if it exists.  Or, you can set the
+`CONFIG_SITE' environment variable to the location of the site script.
+A warning: not all `configure' scripts look for a site script.
+
+Defining Variables
+==================
+
+   Variables not defined in a site shell script can be set in the
+environment passed to `configure'.  However, some packages may run
+configure again during the build, and the customized values of these
+variables may be lost.  In order to avoid this problem, you should set
+them in the `configure' command line, using `VAR=value'.  For example:
+
+     ./configure CC=/usr/local2/bin/gcc
+
+will cause the specified gcc to be used as the C compiler (unless it is
+overridden in the site shell script).
+
+`configure' Invocation
+======================
+
+   `configure' recognizes the following options to control how it
+operates.
+
+`--help'
+`-h'
+     Print a summary of the options to `configure', and exit.
+
+`--version'
+`-V'
+     Print the version of Autoconf used to generate the `configure'
+     script, and exit.
+
+`--cache-file=FILE'
+     Enable the cache: use and save the results of the tests in FILE,
+     traditionally `config.cache'.  FILE defaults to `/dev/null' to
+     disable caching.
+
+`--config-cache'
+`-C'
+     Alias for `--cache-file=config.cache'.
+
+`--quiet'
+`--silent'
+`-q'
+     Do not print messages saying which checks are being made.  To
+     suppress all normal output, redirect it to `/dev/null' (any error
+     messages will still be shown).
+
+`--srcdir=DIR'
+     Look for the package's source code in directory DIR.  Usually
+     `configure' can determine that directory automatically.
+
+`configure' also accepts some other, not widely useful, options.  Run
+`configure --help' for more details.
+
diff --git a/applet/Makefile.am b/applet/Makefile.am
new file mode 100644 (file)
index 0000000..82a9352
--- /dev/null
@@ -0,0 +1,16 @@
+SUBDIRS = data
+# We invent desktoplib_LTLIBRARIES instead of the normal lib_LTLIBRARIES,
+# so we can specify the non-standard installation directory.
+desktoplib_LTLIBRARIES =  livewp-home-widget.la
+desktoplibdir = $(HILDON_DESKTOP_LIB_DIR)
+
+lib_livewp_home_widget_la_SOURCES = livewp-home-widget.c livewp-home-widget.h
+lib_livewp_home_widget_la_LIBADD = $(EXAMPLE_LIBS) 
+
+AM_CFLAGS = -Wall $(EXAMPLE_CFLAGS) 
+
+# .desktop file
+desktopdir = $(HILDON_HOME_DESKTOP_DIR)
+desktop_DATA = livewp-home-widget.desktop
+
+DISTCLEANFILES = $(desktop_DATA)
diff --git a/applet/NEWS b/applet/NEWS
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/applet/README b/applet/README
new file mode 100644 (file)
index 0000000..1c7902a
--- /dev/null
@@ -0,0 +1 @@
+Example Home widget. Provides TimeOut applet for the Home Area of the desktop.
diff --git a/applet/astrolib.c b/applet/astrolib.c
new file mode 100644 (file)
index 0000000..2d2ed3e
--- /dev/null
@@ -0,0 +1,141 @@
+#include <stdio.h>
+#include <math.h>
+    
+double ut(int hour, int min, int zone)
+{
+    return (hour - zone + (double)min/60);
+}
+
+double jd(int year, int month, int day, double uu)
+{
+    return (367*year)-floor((floor((month+9)/12)+year)*7/4)+floor(275*month/9)+day-730531.5+(uu/24);
+}
+
+double altitude(double lon, double lat, int year, int month, int day, int hour, int min, int zone)
+{
+    double uu, jj, T, k, M, Lo, DL, L, eps, delta, RA, GMST, LMST, H, eqt, alt;
+    uu = ut(hour, min, zone);
+    jj = jd(year, month, day, uu);
+    T = jj / 36525;
+    k = M_PI / 180;
+    M = 357.5291 + 35999.0503 * T - 0.0001559 * T * T - 0.00000045 * T * T * T;
+    M = fmod(M, 360);
+    Lo = 280.46645 + 36000.76983 * T + 0.0003032 * T * T;
+    Lo = fmod(Lo, 360);
+    DL = (1.9146-0.004817*T-0.000014*T*T)*sin(k*M)+(0.019993-0.000101*T)*sin(k*2*M)+0.00029*sin(k*3*M);
+    L=Lo+DL;
+    eps=23.43999-0.013*T;
+    delta=(1/k)*asin(sin(L*k)*sin(eps*k));
+    RA=(1/k)*atan2(cos(eps*k)*sin(L*k),cos(L*k));
+    RA=fmod((RA+360), 360);
+    GMST=280.46061837+360.98564736629*jj+0.000387933*T*T-T*T*T/38710000;
+    GMST=fmod((GMST+360), 360);
+    LMST=GMST+lon;
+    H=LMST-RA;
+    eqt=(Lo-RA)*4;
+    alt=(1/k)*asin(sin(lat*k)*sin(delta*k)+cos(lat*k)*cos(delta*k)*cos(H*k));
+    return alt;
+}
+
+double azimuth(double lon, double lat, int year, int month, int day, int hour, int min, int zone)
+{
+    double uu, jj, T, k, M, Lo, DL, L, eps, delta, RA, GMST, LMST, H, eqt, azm;
+    uu = ut(hour, min, zone);
+    fprintf(stderr, "%f, %f, %i.%i.%i %i:%i %i uu=%f", lon, lat, year, month, day, hour, min, zone, uu);
+    jj = jd(year, month, day, uu);
+    T = jj / 36525;
+    k = M_PI / 180;
+    M = 357.5291 + 35999.0503 * T - 0.0001559 * T * T - 0.00000045 * T * T * T;
+    M = fmod(M, 360);
+    Lo = 280.46645 + 36000.76983 * T + 0.0003032 * T * T;
+    Lo = fmod(Lo, 360);
+    DL = (1.9146-0.004817*T-0.000014*T*T)*sin(k*M)+(0.019993-0.000101*T)*sin(k*2*M)+0.00029*sin(k*3*M);
+    L=Lo+DL;
+    eps=23.43999-0.013*T;
+    delta=(1/k)*asin(sin(L*k)*sin(eps*k));
+    RA=(1/k)*atan2(cos(eps*k)*sin(L*k),cos(L*k));
+    RA=fmod((RA+360), 360);
+    GMST=280.46061837+360.98564736629*jj+0.000387933*T*T-T*T*T/38710000;
+    GMST=fmod((GMST+360), 360);
+    LMST=GMST+lon;
+    H=LMST-RA;
+    eqt=(Lo-RA)*4;
+    azm=(1/k)*atan2(-sin(H*k),cos(lat*k)*tan(delta*k)-sin(lat*k)*cos(H*k));
+    azm=fmod((azm+360), 360);
+    return azm;
+}
+double moon_phase(int year, int month, int day)
+{
+    int yy, mm, dd, k1, k2, k3, jd;
+    double ip, v, ag;
+    yy = year - floor((12 - month) / 10);
+    mm = month + 9;
+    if (mm >= 12) mm = mm - 12;
+
+    k1 = floor(365.35 * (yy + 4712));
+    k2 = floor(30.6 * mm + 0.05);
+    k3 = floor(floor(yy/100+49) * 0.75) - 38;
+
+    jd = k1 + k2 + day + 59;
+    if (jd > 2299160) jd = jd - k3;
+    
+    v = (jd - 2451550.1) / 29.530588853;
+    ip = v - floor(v);
+    if (ip < 0) ip = ip + 1;
+    ag = ip * 29.53;
+    fprintf(stderr, "ip = %f, ag = %f\n", ip, ag);
+}
+
+double moon_phase1(int year, int month, int day)
+{
+    int yy, mm, dd, k1, k2, k3, lg;
+    double agepart, ageday, ge, moonday, jd, moonfill;
+    ge = 1721425.5;
+    moonday = 29.530588853;
+    if (month <= 2) lg = 0;
+    else {
+        if ((fmod(year, 4) == 0) && (!(fmod(year, 100) == 0) && (fmod(year, 400) != 0)))
+            lg = -1;
+        else lg = -2;
+    }
+    jd = (ge - 1) + 
+        (365 * (year - 1)) + 
+        floor((year - 1) / 4) + 
+        (-floor((year - 1) / 100)) +
+        floor((year - 1) / 400) + 
+        floor((((367 * month) - 362) / 12) + lg + day);
+    
+    agepart = (jd - 2451550.1) / moonday;
+    agepart = agepart - floor(agepart);
+    if (agepart < 0) agepart + 1;
+/*
+    ageday = agepart * moonday;
+
+    moonfill = 1.0 - ((moonday/2 - ageday) / (moonday/2));
+    fprintf(stderr, "agepart = %f, ageday = %f, moonfill = %f\n", agepart, ageday, moonfill);
+    */
+    return agepart;
+}
+
+/*
+int main(int argc, char * argv)
+{   
+    int year, month, day, hour, min, zone;
+    double alt, azm, lon, lat, moonpart;
+    lon = 30.133333;
+    lat = 55.166666;
+    year = 2010;
+    month = 4;
+    day = 13;
+    hour = 18;
+    min = 10;
+    zone = 2;
+    
+    moonpart = moon_phase1(year, month, day);
+    fprintf(stderr, "moon path = %f\n", moonpart);
+    //alt = altitude(lon, lat, year, month, day, hour, min, zone);
+    //azm = azimuth(lon, lat, year, month, day, hour, min, zone);
+    //fprintf(stderr, "alt=%5.6f azm=%5.6f\n", alt, azm);
+
+    return 1;
+}*/
diff --git a/applet/autogen.sh b/applet/autogen.sh
new file mode 100755 (executable)
index 0000000..27a68ef
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+set -ex
+autoreconf --install --force 
diff --git a/applet/configure.ac b/applet/configure.ac
new file mode 100644 (file)
index 0000000..6f7b26a
--- /dev/null
@@ -0,0 +1,32 @@
+AC_PREREQ(2.61)
+AC_INIT([livewp], [0.1])
+AC_CONFIG_SRCDIR([livewp-home-widget.c])
+AM_INIT_AUTOMAKE
+AC_CONFIG_HEADER([config.h])
+
+AC_PROG_CC
+AC_HEADER_STDC
+AC_PROG_INSTALL
+AM_PROG_LIBTOOL
+
+PKG_CHECK_MODULES(EXAMPLE, hildon-1 libhildondesktop-1 gtk+-2.0)
+AC_SUBST(EXAMPLE_CFLAGS)
+AC_SUBST(EXAMPLE_LIBS)
+
+# Discover where to install the .desktop file:
+HILDON_HOME_DESKTOP_DIR=`pkg-config libhildondesktop-1 --variable=hildonhomedesktopentrydir`
+AC_SUBST(HILDON_HOME_DESKTOP_DIR)
+
+# Discover where to install the status widget's lib file:
+HILDON_DESKTOP_LIB_DIR=`pkg-config libhildondesktop-1 --variable=hildondesktoplibdir`
+AC_SUBST(HILDON_DESKTOP_LIB_DIR) 
+
+dnl Config files
+AC_CONFIG_FILES([Makefile
+               livewp-home-widget.desktop
+               data/Makefile])
+dnl Produce output files
+AC_OUTPUT
+
+#AC_OUTPUT(Makefile)
+#AC_OUTPUT(awallpaper-home-widget.desktop)
diff --git a/applet/data/Makefile b/applet/data/Makefile
new file mode 100644 (file)
index 0000000..23f4898
--- /dev/null
@@ -0,0 +1,366 @@
+# Makefile.in generated by automake 1.8.5 from Makefile.am.
+# data/Makefile.  Generated from Makefile.in by configure.
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004  Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+#
+# This file is part of omweather
+#
+# Copyright (C) 2006 Vlad Vasiliev
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+
+srcdir = .
+top_srcdir = ..
+
+pkgdatadir = $(datadir)/awallpaper
+pkglibdir = $(libdir)/awallpaper
+pkgincludedir = $(includedir)/awallpaper
+top_builddir = ..
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+INSTALL = /scratchbox/tools/bin/install -c
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+host_triplet = i486-pc-linux-gnu
+subdir = data
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+       $(ACLOCAL_M4)
+mkinstalldirs = $(mkdir_p)
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+SOURCES =
+DIST_SOURCES =
+am__installdirs = "$(DESTDIR)$(awallpaperdir)"
+awallpaperDATA_INSTALL = $(INSTALL_DATA)
+DATA = $(awallpaper_DATA)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /home/tanya/work/hildon-timeout-home-widget-example/missing --run aclocal-1.8
+AMDEP_FALSE = #
+AMDEP_TRUE = 
+AMTAR = ${SHELL} /home/tanya/work/hildon-timeout-home-widget-example/missing --run tar
+AR = i486-linux-gnu-ar
+AUTOCONF = ${SHELL} /home/tanya/work/hildon-timeout-home-widget-example/missing --run autoconf
+AUTOHEADER = ${SHELL} /home/tanya/work/hildon-timeout-home-widget-example/missing --run autoheader
+AUTOMAKE = ${SHELL} /home/tanya/work/hildon-timeout-home-widget-example/missing --run automake-1.8
+AWK = gawk
+CC = i486-linux-gnu-gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -Wall -g -O2
+CPP = i486-linux-gnu-gcc -E
+CPPFLAGS = 
+CXX = i486-linux-gnu-g++
+CXXCPP = i486-linux-gnu-g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+DSYMUTIL = 
+ECHO = echo
+ECHO_C = 
+ECHO_N = -n
+ECHO_T = 
+EGREP = /scratchbox/tools/bin/grep -E
+EXAMPLE_CFLAGS = -DMAEMO_CHANGES -DMAEMO_GTK -pthread -I/usr/include/hildon-1 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libhildondesktop-1 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/gconf/2  
+EXAMPLE_LIBS = -pthread -lhildondesktop-1 -lhildon-1 -lgnomevfs-2 -lgconf-2 -lgthread-2.0 -lrt -ldbus-glib-1 -ldbus-1 -lpthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0  
+EXEEXT = 
+F77 = 
+FFLAGS = 
+GREP = /scratchbox/tools/bin/grep
+HILDON_DESKTOP_LIB_DIR = /usr/lib/hildon-desktop
+HILDON_HOME_DESKTOP_DIR = /usr/share/applications/hildon-home
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
+LDFLAGS = 
+LIBOBJS = 
+LIBS = 
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LN_S = ln -s
+LTLIBOBJS = 
+MAKEINFO = ${SHELL} /home/tanya/work/hildon-timeout-home-widget-example/missing --run makeinfo
+NMEDIT = 
+OBJEXT = o
+PACKAGE = awallpaper
+PACKAGE_BUGREPORT = 
+PACKAGE_NAME = awallpaper
+PACKAGE_STRING = awallpaper 0.1
+PACKAGE_TARNAME = awallpaper
+PACKAGE_VERSION = 0.1
+PATH_SEPARATOR = :
+PKG_CONFIG = /scratchbox/tools/bin/pkg-config
+RANLIB = i486-linux-gnu-ranlib
+SED = /scratchbox/tools/bin/sed
+SET_MAKE = 
+SHELL = /bin/sh
+STRIP = i486-linux-gnu-strip
+VERSION = 0.1
+ac_ct_CC = 
+ac_ct_CXX = 
+ac_ct_F77 = 
+am__fastdepCC_FALSE = #
+am__fastdepCC_TRUE = 
+am__fastdepCXX_FALSE = #
+am__fastdepCXX_TRUE = 
+am__include = include
+am__leading_dot = .
+am__quote = 
+bindir = ${exec_prefix}/bin
+build = i486-pc-linux-gnu
+build_alias = i486-linux-gnu
+build_cpu = i486
+build_os = linux-gnu
+build_vendor = pc
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = i486-pc-linux-gnu
+host_alias = i486-linux-gnu
+host_cpu = i486
+host_os = linux-gnu
+host_vendor = pc
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${prefix}/share/info
+install_sh = /home/tanya/work/hildon-timeout-home-widget-example/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${prefix}/share/man
+mkdir_p = mkdir -p -- .
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+sysconfdir = ${prefix}/etc
+target_alias = 
+awallpaperdir = $(datadir)/anwall
+awallpaper_DATA = background.png sun.png
+EXTRA_DIST = $(awallpaper_DATA) 
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+       @for dep in $?; do \
+         case '$(am__configure_deps)' in \
+           *$$dep*) \
+             cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+               && exit 0; \
+             exit 1;; \
+         esac; \
+       done; \
+       echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  data/Makefile'; \
+       cd $(top_srcdir) && \
+         $(AUTOMAKE) --gnu  data/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+       @case '$?' in \
+         *config.status*) \
+           cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+         *) \
+           echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+           cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+       esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+mostlyclean-libtool:
+       -rm -f *.lo
+
+clean-libtool:
+       -rm -rf .libs _libs
+
+distclean-libtool:
+       -rm -f libtool
+uninstall-info-am:
+install-awallpaperDATA: $(awallpaper_DATA)
+       @$(NORMAL_INSTALL)
+       test -z "$(awallpaperdir)" || $(mkdir_p) "$(DESTDIR)$(awallpaperdir)"
+       @list='$(awallpaper_DATA)'; for p in $$list; do \
+         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+         f="`echo $$p | sed -e 's|^.*/||'`"; \
+         echo " $(awallpaperDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(awallpaperdir)/$$f'"; \
+         $(awallpaperDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(awallpaperdir)/$$f"; \
+       done
+
+uninstall-awallpaperDATA:
+       @$(NORMAL_UNINSTALL)
+       @list='$(awallpaper_DATA)'; for p in $$list; do \
+         f="`echo $$p | sed -e 's|^.*/||'`"; \
+         echo " rm -f '$(DESTDIR)$(awallpaperdir)/$$f'"; \
+         rm -f "$(DESTDIR)$(awallpaperdir)/$$f"; \
+       done
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+distdir: $(DISTFILES)
+       @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+       topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+       list='$(DISTFILES)'; for file in $$list; do \
+         case $$file in \
+           $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+           $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
+         esac; \
+         if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+         dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+         if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+           dir="/$$dir"; \
+           $(mkdir_p) "$(distdir)$$dir"; \
+         else \
+           dir=''; \
+         fi; \
+         if test -d $$d/$$file; then \
+           if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+             cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+           fi; \
+           cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+         else \
+           test -f $(distdir)/$$file \
+           || cp -p $$d/$$file $(distdir)/$$file \
+           || exit 1; \
+         fi; \
+       done
+check-am: all-am
+check: check-am
+all-am: Makefile $(DATA)
+installdirs:
+       for dir in "$(DESTDIR)$(awallpaperdir)"; do \
+         test -z "$$dir" || $(mkdir_p) "$$dir"; \
+       done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+       $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+         install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+         `test -z '$(STRIP)' || \
+           echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+       -rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+       @echo "This command is intended for maintainers to use"
+       @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+       -rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-libtool
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am: install-awallpaperDATA
+
+install-exec-am:
+
+install-info: install-info-am
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+       -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-awallpaperDATA uninstall-info-am
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+       distclean distclean-generic distclean-libtool distdir dvi \
+       dvi-am html html-am info info-am install install-am \
+       install-awallpaperDATA install-data install-data-am \
+       install-exec install-exec-am install-info install-info-am \
+       install-man install-strip installcheck installcheck-am \
+       installdirs maintainer-clean maintainer-clean-generic \
+       mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
+       ps ps-am uninstall uninstall-am uninstall-awallpaperDATA \
+       uninstall-info-am
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/applet/data/Makefile.am b/applet/data/Makefile.am
new file mode 100644 (file)
index 0000000..ecb881d
--- /dev/null
@@ -0,0 +1,24 @@
+#
+# This file is part of omweather
+#
+# Copyright (C) 2006 Vlad Vasiliev
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+awallpaperdir = $(datadir)/anwall
+awallpaper_DATA = sky.png sun.png town.png cloud1.png
+EXTRA_DIST = $(awallpaper_DATA) 
+
diff --git a/applet/data/Makefile.in b/applet/data/Makefile.in
new file mode 100644 (file)
index 0000000..34e6b93
--- /dev/null
@@ -0,0 +1,366 @@
+# Makefile.in generated by automake 1.8.5 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004  Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+#
+# This file is part of omweather
+#
+# Copyright (C) 2006 Vlad Vasiliev
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+top_builddir = ..
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+INSTALL = @INSTALL@
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+host_triplet = @host@
+subdir = data
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+       $(ACLOCAL_M4)
+mkinstalldirs = $(mkdir_p)
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+SOURCES =
+DIST_SOURCES =
+am__installdirs = "$(DESTDIR)$(awallpaperdir)"
+awallpaperDATA_INSTALL = $(INSTALL_DATA)
+DATA = $(awallpaper_DATA)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMDEP_FALSE = @AMDEP_FALSE@
+AMDEP_TRUE = @AMDEP_TRUE@
+AMTAR = @AMTAR@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DSYMUTIL = @DSYMUTIL@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXAMPLE_CFLAGS = @EXAMPLE_CFLAGS@
+EXAMPLE_LIBS = @EXAMPLE_LIBS@
+EXEEXT = @EXEEXT@
+F77 = @F77@
+FFLAGS = @FFLAGS@
+GREP = @GREP@
+HILDON_DESKTOP_LIB_DIR = @HILDON_DESKTOP_LIB_DIR@
+HILDON_HOME_DESKTOP_DIR = @HILDON_HOME_DESKTOP_DIR@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+NMEDIT = @NMEDIT@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+VERSION = @VERSION@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_F77 = @ac_ct_F77@
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+awallpaperdir = $(datadir)/anwall
+awallpaper_DATA = background.png sun.png
+EXTRA_DIST = $(awallpaper_DATA) 
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+       @for dep in $?; do \
+         case '$(am__configure_deps)' in \
+           *$$dep*) \
+             cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+               && exit 0; \
+             exit 1;; \
+         esac; \
+       done; \
+       echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  data/Makefile'; \
+       cd $(top_srcdir) && \
+         $(AUTOMAKE) --gnu  data/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+       @case '$?' in \
+         *config.status*) \
+           cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+         *) \
+           echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+           cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+       esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+mostlyclean-libtool:
+       -rm -f *.lo
+
+clean-libtool:
+       -rm -rf .libs _libs
+
+distclean-libtool:
+       -rm -f libtool
+uninstall-info-am:
+install-awallpaperDATA: $(awallpaper_DATA)
+       @$(NORMAL_INSTALL)
+       test -z "$(awallpaperdir)" || $(mkdir_p) "$(DESTDIR)$(awallpaperdir)"
+       @list='$(awallpaper_DATA)'; for p in $$list; do \
+         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+         f="`echo $$p | sed -e 's|^.*/||'`"; \
+         echo " $(awallpaperDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(awallpaperdir)/$$f'"; \
+         $(awallpaperDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(awallpaperdir)/$$f"; \
+       done
+
+uninstall-awallpaperDATA:
+       @$(NORMAL_UNINSTALL)
+       @list='$(awallpaper_DATA)'; for p in $$list; do \
+         f="`echo $$p | sed -e 's|^.*/||'`"; \
+         echo " rm -f '$(DESTDIR)$(awallpaperdir)/$$f'"; \
+         rm -f "$(DESTDIR)$(awallpaperdir)/$$f"; \
+       done
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+distdir: $(DISTFILES)
+       @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+       topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+       list='$(DISTFILES)'; for file in $$list; do \
+         case $$file in \
+           $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+           $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
+         esac; \
+         if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+         dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+         if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+           dir="/$$dir"; \
+           $(mkdir_p) "$(distdir)$$dir"; \
+         else \
+           dir=''; \
+         fi; \
+         if test -d $$d/$$file; then \
+           if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+             cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+           fi; \
+           cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+         else \
+           test -f $(distdir)/$$file \
+           || cp -p $$d/$$file $(distdir)/$$file \
+           || exit 1; \
+         fi; \
+       done
+check-am: all-am
+check: check-am
+all-am: Makefile $(DATA)
+installdirs:
+       for dir in "$(DESTDIR)$(awallpaperdir)"; do \
+         test -z "$$dir" || $(mkdir_p) "$$dir"; \
+       done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+       $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+         install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+         `test -z '$(STRIP)' || \
+           echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+       -rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+       @echo "This command is intended for maintainers to use"
+       @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+       -rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-libtool
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am: install-awallpaperDATA
+
+install-exec-am:
+
+install-info: install-info-am
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+       -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-awallpaperDATA uninstall-info-am
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+       distclean distclean-generic distclean-libtool distdir dvi \
+       dvi-am html html-am info info-am install install-am \
+       install-awallpaperDATA install-data install-data-am \
+       install-exec install-exec-am install-info install-info-am \
+       install-man install-strip installcheck installcheck-am \
+       installdirs maintainer-clean maintainer-clean-generic \
+       mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
+       ps ps-am uninstall uninstall-am uninstall-awallpaperDATA \
+       uninstall-info-am
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/applet/data/background.png b/applet/data/background.png
new file mode 100644 (file)
index 0000000..c20771e
Binary files /dev/null and b/applet/data/background.png differ
diff --git a/applet/data/cloud1.png b/applet/data/cloud1.png
new file mode 100644 (file)
index 0000000..7b82062
Binary files /dev/null and b/applet/data/cloud1.png differ
diff --git a/applet/data/sky.png b/applet/data/sky.png
new file mode 100644 (file)
index 0000000..bb34906
Binary files /dev/null and b/applet/data/sky.png differ
diff --git a/applet/data/sun.png b/applet/data/sun.png
new file mode 100644 (file)
index 0000000..10931cd
Binary files /dev/null and b/applet/data/sun.png differ
diff --git a/applet/data/town.png b/applet/data/town.png
new file mode 100644 (file)
index 0000000..7e81cd4
Binary files /dev/null and b/applet/data/town.png differ
diff --git a/applet/debian/changelog b/applet/debian/changelog
new file mode 100644 (file)
index 0000000..ff292f5
--- /dev/null
@@ -0,0 +1,6 @@
+live-wallpaper (0.1) unstable; urgency=low
+
+  * First release
+
+ -- Vlad Vasiliev <vlad@gas.by>  Sun, 21 Mar 2010 16:11:10 +0200
+
diff --git a/applet/debian/compat b/applet/debian/compat
new file mode 100644 (file)
index 0000000..7ed6ff8
--- /dev/null
@@ -0,0 +1 @@
+5
diff --git a/applet/debian/control b/applet/debian/control
new file mode 100644 (file)
index 0000000..9dec750
--- /dev/null
@@ -0,0 +1,12 @@
+Source: live-wallpaper
+Section: user/desktop
+Priority: optional
+Maintainer: Vlad Vasiliev vlad@gas.by
+Build-Depends: debhelper (>= 5), autotools-dev, libhildondesktop1-dev (>= 2.1.16)
+Standards-Version: 3.7.2
+
+Package: live-wallpaper
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Animation wallpaper 
+ for Maemo.
diff --git a/applet/debian/copyright b/applet/debian/copyright
new file mode 100644 (file)
index 0000000..0337c4c
--- /dev/null
@@ -0,0 +1,24 @@
+Copyright (c) 2010 Vlad Vasiliev
+Copyright (c) 2010 Tanya Makova
+
+Live Wallpaper is licensed under the terms of the GNU GPL.
+
+By using this software you agree that you understand that using Maemo Mapper in
+Online Mode with a commercial map repository may be considered a violation of
+copyright law and that John Costigan cannot be held responsible for any of your
+actions related thereto.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+This program 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 General Public License for more details.
+
+You should have received a copy of the GNU General Public License along
+with this program; if not, write to the Free Software Foundation, Inc.,
+51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
diff --git a/applet/debian/files b/applet/debian/files
new file mode 100644 (file)
index 0000000..7e5fcea
--- /dev/null
@@ -0,0 +1 @@
+animation-wallpaper_0.1_i386.deb user/desktop optional
diff --git a/applet/debian/hildon-timeout-home-widget-example.substvars b/applet/debian/hildon-timeout-home-widget-example.substvars
new file mode 100644 (file)
index 0000000..8382a75
--- /dev/null
@@ -0,0 +1 @@
+shlibs:Depends=libatk1.0-0 (>= 1.24.0), libc6 (>= 2.5.0-1), libcairo2, libdbus-1-3 (>= 1.1.4), libdbus-glib-1-2 (>= 0.76), libfontconfig1 (>= 2.6.0), libfreetype6 (>= 2.3.9), libgconf2-6 (>= 2.13.5), libglib2.0-0 (>= 2.20.0), libgtk2.0-0 (>= 2:2.12.9-0osso1), libhildon1, libhildondesktop1, libosso-gnomevfs2-0, libpango1.0-0
diff --git a/applet/debian/rules b/applet/debian/rules
new file mode 100644 (file)
index 0000000..0bd8d42
--- /dev/null
@@ -0,0 +1,104 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+       CFLAGS += -O0
+else
+       CFLAGS += -O2
+endif
+
+config.status: configure
+       dh_testdir
+       # Add here commands to configure the package.
+       ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" 
+
+
+build: build-stamp
+
+build-stamp:  config.status
+       dh_testdir
+
+
+       touch $@
+
+clean:
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp 
+
+       # Add here commands to clean up after the build process.
+       -$(MAKE) distclean
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+       cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+       cp -f /usr/share/misc/config.guess config.guess
+endif
+
+
+       dh_clean 
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k 
+       dh_installdirs
+
+       # Add here commands to install the package into debian/hildon-timeout-home-widget-example.
+       $(MAKE) DESTDIR=$(CURDIR)/debian/live-wallpaper install
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs ChangeLog
+       dh_installdocs
+       dh_installexamples
+#      dh_install
+#      dh_installmenu
+#      dh_installdebconf       
+#      dh_installlogrotate
+#      dh_installemacsen
+#      dh_installpam
+#      dh_installmime
+#      dh_python
+#      dh_installinit
+#      dh_installcron
+#      dh_installinfo
+       dh_installman
+       dh_link
+       dh_strip
+       dh_compress
+       dh_fixperms
+#      dh_perl
+#      dh_makeshlibs
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install 
diff --git a/applet/livewp-home-widget.c b/applet/livewp-home-widget.c
new file mode 100644 (file)
index 0000000..d4c8bab
--- /dev/null
@@ -0,0 +1,242 @@
+/*      
+ * This file is part of hildon-timeout-home-widget-example
+ *
+ * Copyright (C) 2009 Nokia Corporation. All rights reserved.
+ *
+ * This maemo code example is licensed under a MIT-style license,
+ * that can be found in the file called "COPYING" in the root
+ * directory.
+ *
+ */
+
+#include <gtk/gtk.h>
+#include <hildon/hildon.h>
+#include "livewp-home-widget.h"
+#include <libhildondesktop/libhildondesktop.h>
+#include <gconf/gconf-client.h>
+#include "astrolib.c"
+
+#define PLUGIN_NAME "livewp-home-widget.desktop-0"
+#define GCONF_KEY_POSITION "/apps/osso/hildon-desktop/applets/%s/position"
+#define GCONF_KEY_MODIFIED "/apps/osso/hildon-desktop/applets/%s/modified"
+#define GCONF_KEY_VIEW     "/apps/osso/hildon-desktop/applets/%s/view"
+
+HD_DEFINE_PLUGIN_MODULE (AWallpaperPlugin, animation_wallpaper_plugin, HD_TYPE_HOME_PLUGIN_ITEM)
+
+#define Xstartposition 795
+#define Ystartposition 430
+
+gint xapplet = 0, yapplet = 0;
+GSList * objects_list = NULL;
+
+gboolean
+expose_event (GtkWidget *widget,GdkEventExpose *event,
+     gpointer data)
+{
+    cairo_t *cr;
+    GdkPixbuf *pixbuf = (GdkPixbuf *) data;
+       
+    cr = gdk_cairo_create(widget->window);
+    gdk_cairo_region(cr, event->region);
+    cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE);
+    gdk_cairo_set_source_pixbuf(cr, pixbuf, 0.0, 0.0);
+    cairo_paint(cr);
+    cairo_destroy(cr);
+    return TRUE;
+}
+void
+realize (GtkWidget *widget)
+{
+    GdkScreen *screen;
+    screen = gtk_widget_get_screen (widget);
+    gtk_widget_set_colormap (widget, gdk_screen_get_rgba_colormap (screen));
+}
+
+void
+init_applet_position(void)
+{
+  /* To Do Must be Only 1 per secund */
+  GSList *position = NULL;
+  gchar *position_key;
+  gchar *modified_key;
+  gchar *modified;
+  GError *error = NULL;
+  GConfClient   *gconf_client = gconf_client_get_default ();
+  position_key = g_strdup_printf (GCONF_KEY_POSITION, PLUGIN_NAME);
+  position = gconf_client_get_list (gconf_client,
+                                    position_key,
+                                    GCONF_VALUE_INT,
+                                    NULL);
+  if (position && position->data && position->next->data){
+       xapplet = GPOINTER_TO_INT (position->data);
+       yapplet = GPOINTER_TO_INT (position->next->data);
+  }else{
+       fprintf(stderr,"Not position \n");
+       position = g_slist_prepend (g_slist_prepend (NULL,
+                                      GINT_TO_POINTER (Ystartposition)),
+                                     GINT_TO_POINTER (Xstartposition));
+       gconf_client_set_list (gconf_client,
+                               position_key,
+                               GCONF_VALUE_INT,
+                              position,
+                              &error);
+       xapplet = Xstartposition;
+       yapplet = Ystartposition;
+  }
+  g_free (position_key);
+  modified = g_strdup_printf ("%ld", 0);
+  modified_key = g_strdup_printf (GCONF_KEY_MODIFIED, PLUGIN_NAME);
+  gconf_client_set_string (gconf_client,
+                           modified_key,
+                           modified,
+                           &error);
+  fprintf(stderr,"position %i %i\n",xapplet, yapplet);
+  gconf_client_clear_cache(gconf_client);
+  g_object_unref(gconf_client);
+}
+
+actor_set_position_full(GtkWidget *actor, gint x, gint y, gint z)
+{
+ fprintf(stderr, "actor_set_position_full\n");
+ hildon_animation_actor_set_position_full (HILDON_ANIMATION_ACTOR (actor),x-xapplet, y-yapplet, z);
+}
+
+GtkWidget* init_object(gchar * name, gint x, gint y, gint z, gint width, gint height)
+{
+  GtkWidget *actor;
+  GdkPixbuf *pixbuf;
+  GtkWidget *image;
+
+  actor = hildon_animation_actor_new();
+  gchar str[256];
+  snprintf(str, 255, "/usr/share/anwall/%s.png", name);
+  //fprintf(stderr, "!!!init object !!!!\nname = %s file = %s\n", name, str);
+  pixbuf = gdk_pixbuf_new_from_file_at_size (str, 
+                                             width, 
+                                             height, 
+                                             NULL);
+  if (pixbuf){
+      image = gtk_image_new_from_pixbuf (pixbuf);
+      g_object_unref(G_OBJECT(pixbuf));
+  }
+  g_signal_connect(G_OBJECT(image), "expose_event",
+                           G_CALLBACK(expose_event), pixbuf);
+
+  gtk_container_add (GTK_CONTAINER (actor), image);
+  actor_set_position_full(actor, x, y, z);
+  hildon_animation_actor_set_show (actor, 1);
+  realize(actor);
+  gtk_widget_show_all(actor);
+  g_object_set_data(G_OBJECT(actor), "name", name);
+  g_object_set_data(G_OBJECT(actor), "posX", x);
+  g_object_set_data(G_OBJECT(actor), "posY", y);
+
+  objects_list = g_slist_append(objects_list, G_OBJECT(actor));
+  return actor;
+}
+
+void
+init_scene(GtkWidget *window)
+{
+  GtkWidget *actor;
+  GdkPixbuf *pixbuf;
+  GtkWidget *image;
+  double alt, azm;
+  gint x, y;
+
+  get_sun_pos(&alt, &azm);
+  get_sun_screen_pos(alt, azm, &x, &y);
+  actor = init_object("sun", x, y, 1, 88, 88);
+  hildon_animation_actor_set_parent (HILDON_ANIMATION_ACTOR (actor), window);
+  actor = init_object("sky", 0, 0, 0, 800, 480);
+  hildon_animation_actor_set_parent (HILDON_ANIMATION_ACTOR (actor), window);
+  actor = init_object("town", 0, 0, 10, 800, 480);
+  hildon_animation_actor_set_parent (HILDON_ANIMATION_ACTOR (actor), window);
+
+//  actor = init_object("cloud1", 450, 100, 2, 200, 150);
+//  hildon_animation_actor_set_parent (HILDON_ANIMATION_ACTOR (actor), window);
+
+
+}
+
+static void
+example_label_home_applet_realize (GtkWidget *widget)
+{
+}
+
+void get_sun_pos(double * alt, double * azm)
+{
+  double lon = 30.133333,
+         lat = 55.166666;
+  time_t timet;
+  struct tm nowtime;
+  time(&timet);
+  localtime_r(&timet, &nowtime);
+  //fprintf(stderr, "plugin on timeout %i.%i.%i (%i) %i:%i:%i\n", nowtime.tm_mday, nowtime.tm_mon+1, nowtime.tm_year+1900, abs(nowtime.tm_gmtoff/3600), nowtime.tm_hour, nowtime.tm_min, nowtime.tm_sec);
+  
+    *alt = altitude(lon, lat, nowtime.tm_year+1900, nowtime.tm_mon+1, nowtime.tm_mday, nowtime.tm_hour, nowtime.tm_min, nowtime.tm_gmtoff/3600);
+    *alt = *alt / 70;
+    *azm = azimuth(lon, lat, nowtime.tm_year+1900, nowtime.tm_mon+1, nowtime.tm_mday, nowtime.tm_hour, nowtime.tm_min, nowtime.tm_gmtoff/3600);
+    //если южная широта
+    if (lat < 0){
+        *azm = 90 + (90 - *azm);
+        *azm = fmod(*azm, 360);
+    } 
+    *azm = (*azm - 90) / 180;
+    //fprintf(stderr, "alt=%5.6f azm=%5.6f\n", alt, azm);
+    
+}
+
+void get_sun_screen_pos(double alt, double azm, gint * x, gint * y)
+{
+    gint y0 = 400;// - уровень горизонта
+    gint o_width = 128,
+         o_height = 
+    *x = (int)(azm * 800) - 64;
+    *y = (int)((1 - alt) * y0) - 64;
+}
+
+static gboolean
+plugin_on_timeout (gpointer data)
+{
+  gchar * str;
+  gint x, y;
+  
+  double azm, alt;
+  get_sun_pos(&alt, &azm);
+
+  GSList * tmp = objects_list;
+  while (tmp != NULL){
+      str = g_object_get_data(G_OBJECT(tmp->data), "name");
+      fprintf(stderr, "object: %s\n", str);
+      if (str == "sun"){
+        get_sun_screen_pos(alt, azm, &x, &y);
+        actor_set_position_full(tmp->data, x, y, 0);
+        fprintf(stderr, "x = %i, y = %i\n", x, y);
+        //g_object_set_data(G_OBJECT(tmp->data), "posX", x);
+        //g_object_set_data(G_OBJECT(tmp->data), "posY", y);
+        fprintf(stderr, "x = %d y = %d\n", x, y);
+      }
+      tmp = g_slist_next(tmp);
+  }
+  
+  return TRUE; /* keep running this event */
+}
+
+static void
+animation_wallpaper_plugin_init (AWallpaperPlugin *desktop_plugin)
+{
+  GtkWidget *label;
+  label = gtk_label_new (""); 
+  gtk_widget_show (label);
+  gtk_container_add (GTK_CONTAINER (desktop_plugin), label);
+  init_applet_position();
+  init_scene(desktop_plugin);
+  desktop_plugin->timer = g_timeout_add(1000*60*1, plugin_on_timeout, desktop_plugin);
+}
+
+static void
+animation_wallpaper_plugin_class_init (AWallpaperPluginClass *klass) {}
+
+static void
+animation_wallpaper_plugin_class_finalize (AWallpaperPluginClass *class) {}
diff --git a/applet/livewp-home-widget.desktop b/applet/livewp-home-widget.desktop
new file mode 100644 (file)
index 0000000..091a542
--- /dev/null
@@ -0,0 +1,5 @@
+[Desktop Entry]
+Name=Live Wallpaper
+Comment=Live Wallpaper
+Type=default
+X-Path=livewp-home-widget.so
diff --git a/applet/livewp-home-widget.desktop.in b/applet/livewp-home-widget.desktop.in
new file mode 100644 (file)
index 0000000..091a542
--- /dev/null
@@ -0,0 +1,5 @@
+[Desktop Entry]
+Name=Live Wallpaper
+Comment=Live Wallpaper
+Type=default
+X-Path=livewp-home-widget.so
diff --git a/applet/livewp-home-widget.h b/applet/livewp-home-widget.h
new file mode 100644 (file)
index 0000000..3643068
--- /dev/null
@@ -0,0 +1,58 @@
+/*
+ * This file is part of hildon-timeout-home-widget-example
+ *
+ * Copyright (C) 2009 Nokia Corporation. All rights reserved.
+ *
+ * This maemo code example is licensed under a MIT-style license,
+ * that can be found in the file called "COPYING" in the root
+ * directory.
+ *
+ */
+
+#ifndef Animation_Wallpaper_PLUGIN_H
+#define Animation_Wallpaper_PLUGIN_H
+
+#include <glib-object.h>
+
+#include <libhildondesktop/libhildondesktop.h>
+
+G_BEGIN_DECLS
+
+typedef struct _AWallpaperPlugin AWallpaperPlugin;
+typedef struct _AWallpaperPluginClass AWallpaperPluginClass;
+
+#define Animation_Wallpaper_TYPE_HOME_PLUGIN (animation_wallpaper_home_plugin_get_type ())
+
+#define Animation_Wallpaper_HOME_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+                        Animation_Wallpaper_TYPE_HOME_PLUGIN, AWallpaperHomePlugin))
+
+#define Animation_Wallpaper_HOME_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
+                        Animation_Wallpaper_TYPE_HOME_PLUGIN, AWallpaperHomePluginClass))
+
+#define Animation_Wallpaper_IS_HOME_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+                        Animation_Wallpaper_TYPE_HOME_PLUGIN))
+
+#define Animation_Wallpaper_IS_HOME_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+                        Animation_Wallpaper_TYPE_HOME_PLUGIN))
+
+#define Animation_Wallpaper_HOME_PLUGIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+                        Animation_Wallpaper_TYPE_HOME_PLUGIN, AWallpaperHomePluginClass))
+
+struct _AWallpaperPlugin
+{
+    HDHomePluginItem hitem;
+    GObject *parent;
+    gint timer;
+};
+
+struct _AWallpaperPluginClass
+{
+    HDHomePluginItemClass parent_class;
+
+};
+
+GType animation_wallpaper_home_plugin_get_type(void);
+
+G_END_DECLS
+
+#endif