[maemo-commits] [maemo-commits] r9064 - in projects/haf/branches/maemo-af-desktop: . todo-plugin todo-plugin/src
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Thu Jan 11 15:53:41 EET 2007
- Previous message: [maemo-commits] r9063 - in projects/haf/trunk/libossomime: . libossomime tests
- Next message: [maemo-commits] r9065 - in projects/haf/trunk/osso-application-installer: . src
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: lucasr Date: 2007-01-11 15:53:40 +0200 (Thu, 11 Jan 2007) New Revision: 9064 Added: projects/haf/branches/maemo-af-desktop/todo-plugin/ projects/haf/branches/maemo-af-desktop/todo-plugin/AUTHORS projects/haf/branches/maemo-af-desktop/todo-plugin/ChangeLog projects/haf/branches/maemo-af-desktop/todo-plugin/Makefile.am projects/haf/branches/maemo-af-desktop/todo-plugin/autogen.sh projects/haf/branches/maemo-af-desktop/todo-plugin/configure.ac projects/haf/branches/maemo-af-desktop/todo-plugin/src/ projects/haf/branches/maemo-af-desktop/todo-plugin/src/Makefile.am projects/haf/branches/maemo-af-desktop/todo-plugin/src/todo-plugin.desktop.in projects/haf/branches/maemo-af-desktop/todo-plugin/src/todoplugin.py Log: Initial import. Added: projects/haf/branches/maemo-af-desktop/todo-plugin/AUTHORS =================================================================== --- projects/haf/branches/maemo-af-desktop/todo-plugin/AUTHORS 2007-01-11 13:24:13 UTC (rev 9063) +++ projects/haf/branches/maemo-af-desktop/todo-plugin/AUTHORS 2007-01-11 13:53:40 UTC (rev 9064) @@ -0,0 +1,2 @@ +Lucas Rocha <lucas.rocha at nokia.com> + Added: projects/haf/branches/maemo-af-desktop/todo-plugin/ChangeLog =================================================================== --- projects/haf/branches/maemo-af-desktop/todo-plugin/ChangeLog 2007-01-11 13:24:13 UTC (rev 9063) +++ projects/haf/branches/maemo-af-desktop/todo-plugin/ChangeLog 2007-01-11 13:53:40 UTC (rev 9064) @@ -0,0 +1,3 @@ +2007-01-11 Lucas Rocha <lucas.rocha at nokia.com> + + * Initial import. Added: projects/haf/branches/maemo-af-desktop/todo-plugin/Makefile.am =================================================================== --- projects/haf/branches/maemo-af-desktop/todo-plugin/Makefile.am 2007-01-11 13:24:13 UTC (rev 9063) +++ projects/haf/branches/maemo-af-desktop/todo-plugin/Makefile.am 2007-01-11 13:53:40 UTC (rev 9064) @@ -0,0 +1 @@ +SUBDIRS = src Added: projects/haf/branches/maemo-af-desktop/todo-plugin/autogen.sh =================================================================== --- projects/haf/branches/maemo-af-desktop/todo-plugin/autogen.sh 2007-01-11 13:24:13 UTC (rev 9063) +++ projects/haf/branches/maemo-af-desktop/todo-plugin/autogen.sh 2007-01-11 13:53:40 UTC (rev 9064) @@ -0,0 +1,8 @@ +#!/bin/sh +# Script for running GNU toolchain for configuration + +set -x +aclocal-1.7 +autoconf +autoheader +automake-1.7 --add-missing --foreign --force --copy Property changes on: projects/haf/branches/maemo-af-desktop/todo-plugin/autogen.sh ___________________________________________________________________ Name: svn:executable + Added: projects/haf/branches/maemo-af-desktop/todo-plugin/configure.ac =================================================================== --- projects/haf/branches/maemo-af-desktop/todo-plugin/configure.ac 2007-01-11 13:24:13 UTC (rev 9063) +++ projects/haf/branches/maemo-af-desktop/todo-plugin/configure.ac 2007-01-11 13:53:40 UTC (rev 9064) @@ -0,0 +1,85 @@ +AC_INIT(todo-plugin, 0.0.1) + +AM_INIT_AUTOMAKE + +AC_CONFIG_SRCDIR([src/todoplugin.py]) + +AC_CANONICAL_HOST + +AC_PROG_CC +AC_PROG_INSTALL +AC_PROG_RANLIB +AC_PROG_LIBTOOL + +AC_C_CONST +AC_HEADER_STDC + +AC_HEADER_STDBOOL + +#+++++++++++++++++++++ +# Dependencies checks +#+++++++++++++++++++++ + +PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.6.0) +AC_SUBST(GTK_LIBS) +AC_SUBST(GTK_CFLAGS) + +PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.6.0) +AC_SUBST(GLIB_LIBS) +AC_SUBST(GLIB_CFLAGS) + +PKG_CHECK_MODULES(LIBHILDONDESKTOP, libhildondesktop >= 3.9) +AC_SUBST(LIBHILDONDESKTOP_LIBS) +AC_SUBST(LIBHILDONDESKTOP_CFLAGS) + +#+++++++++++++++++++ +# Directories setup +#+++++++++++++++++++ + +hildonhomeentrydir=${datadir}/applications/hildon-home +AC_SUBST(hildonhomeentrydir) + +hildonhomelibdir=${libdir}/hildon-desktop +AC_SUBST(hildonhomelibdir) + +#++++++++ +# Python +#++++++++ + +have_python=yes + +AM_PATH_PYTHON([2.4],[],[no]) +if test "x$PYTHON" = "x:"; then + have_python=no +fi + +if test "x$have_python" != "xno"; then + PYTHON_LIBS="-lpython$PYTHON_VERSION" + PYTHON_LIB_LOC="-L$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/config" + PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" + AC_SUBST(PYTHON_LIBS) + AC_SUBST(PYTHON_LIB_LOC) + AC_SUBST(PYTHON_CFLAGS) + + PKG_CHECK_MODULES(PYGOBJECT, pygobject-2.0 >= 2.6) + AC_SUBST(PYGOBJECT_LIBS) + AC_SUBST(PYGOBJECT_CFLAGS) + + PKG_CHECK_MODULES(PYGTK, pygtk-2.0 >= 2.6) + AC_SUBST(PYGTK_CFLAGS) + AC_SUBST(PYGTK_LIBS) + + PKG_CHECK_MODULES(PYTHON_HILDON_DESKTOP, python-hildon-desktop >= 0.0.1) +fi + +if test "x$have_python" != "xyes"; then + AC_MSG_ERROR([Python not found]) +fi + +AC_CONFIG_FILES([ +Makefile +src/Makefile +src/todo-plugin.desktop +]) + +AC_OUTPUT Added: projects/haf/branches/maemo-af-desktop/todo-plugin/src/Makefile.am =================================================================== --- projects/haf/branches/maemo-af-desktop/todo-plugin/src/Makefile.am 2007-01-11 13:24:13 UTC (rev 9063) +++ projects/haf/branches/maemo-af-desktop/todo-plugin/src/Makefile.am 2007-01-11 13:53:40 UTC (rev 9064) @@ -0,0 +1,4 @@ +hildonhomelib_PYTHON = todoplugin.py +hildonhomeentry_DATA = todo-plugin.desktop + +CLEANFILES = *~ *.desktop Added: projects/haf/branches/maemo-af-desktop/todo-plugin/src/todo-plugin.desktop.in =================================================================== --- projects/haf/branches/maemo-af-desktop/todo-plugin/src/todo-plugin.desktop.in 2007-01-11 13:24:13 UTC (rev 9063) +++ projects/haf/branches/maemo-af-desktop/todo-plugin/src/todo-plugin.desktop.in 2007-01-11 13:53:40 UTC (rev 9064) @@ -0,0 +1,4 @@ +[Desktop Entry] +Name=Todo List Plugin +Type=python +X-Path=todoplugin Added: projects/haf/branches/maemo-af-desktop/todo-plugin/src/todoplugin.py =================================================================== --- projects/haf/branches/maemo-af-desktop/todo-plugin/src/todoplugin.py 2007-01-11 13:24:13 UTC (rev 9063) +++ projects/haf/branches/maemo-af-desktop/todo-plugin/src/todoplugin.py 2007-01-11 13:53:40 UTC (rev 9064) @@ -0,0 +1,26 @@ +import gtk +import pygtk +import hildondesktop + +class DummyHomePlugin(hildondesktop.HomeApplet): + def clicked(self, widget, data=None): + print "Clicked!!!" + + def __init__(self): + hildondesktop.HomeApplet.__init__(self) + + image = gtk.Image() + image.set_from_stock(gtk.STOCK_CDROM, gtk.ICON_SIZE_LARGE_TOOLBAR) + + button = gtk.Button() + button.connect("clicked", self.clicked, None) + button.set_image(image) + button.set_size_request(80, 80); + button.show() + + self.add(button) + +def hd_plugin_get_objects(): + plugin = DummyHomePlugin() + + return [plugin]
- Previous message: [maemo-commits] r9063 - in projects/haf/trunk/libossomime: . libossomime tests
- Next message: [maemo-commits] r9065 - in projects/haf/trunk/osso-application-installer: . src
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]