[maemo-commits] [maemo-commits] r8905 - in projects/haf/branches/maemo-af-desktop/example-plugins: . src
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Fri Dec 29 18:15:17 EET 2006
- Previous message: [maemo-commits] r8904 - in projects/haf/branches/maemo-af-desktop/python-hildon-desktop: . libhildondesktop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: lucasr Date: 2006-12-29 18:15:16 +0200 (Fri, 29 Dec 2006) New Revision: 8905 Added: projects/haf/branches/maemo-af-desktop/example-plugins/src/python-home.desktop.in projects/haf/branches/maemo-af-desktop/example-plugins/src/pythonhome.py Modified: projects/haf/branches/maemo-af-desktop/example-plugins/ChangeLog projects/haf/branches/maemo-af-desktop/example-plugins/configure.ac projects/haf/branches/maemo-af-desktop/example-plugins/src/Makefile.am Log: 2006-12-29 Lucas Rocha <lucas.rocha at nokia.com> * configure.ac, src/python-home.desktop.in, src/pythonhome.py: added python home plugin example. Modified: projects/haf/branches/maemo-af-desktop/example-plugins/ChangeLog =================================================================== --- projects/haf/branches/maemo-af-desktop/example-plugins/ChangeLog 2006-12-29 16:13:48 UTC (rev 8904) +++ projects/haf/branches/maemo-af-desktop/example-plugins/ChangeLog 2006-12-29 16:15:16 UTC (rev 8905) @@ -1,5 +1,10 @@ 2006-12-29 Lucas Rocha <lucas.rocha at nokia.com> + * configure.ac, src/python-home.desktop.in, src/pythonhome.py: added + python home plugin example. + +2006-12-29 Lucas Rocha <lucas.rocha at nokia.com> + * configure.ac: added python-hildon-desktop dependency check. 2006-12-29 Lucas Rocha <lucas.rocha at nokia.com> Modified: projects/haf/branches/maemo-af-desktop/example-plugins/configure.ac =================================================================== --- projects/haf/branches/maemo-af-desktop/example-plugins/configure.ac 2006-12-29 16:13:48 UTC (rev 8904) +++ projects/haf/branches/maemo-af-desktop/example-plugins/configure.ac 2006-12-29 16:15:16 UTC (rev 8905) @@ -55,6 +55,9 @@ pythonpaneldir=${libdir}/hildon-desktop AC_SUBST(pythonpaneldir) +pythonhomedir=${libdir}/hildon-desktop +AC_SUBST(pythonhomedir) + dummypaneldir=${libdir}/hildon-desktop AC_SUBST(dummypaneldir) @@ -113,6 +116,7 @@ Makefile src/Makefile src/python-panel.desktop +src/python-home.desktop src/dummy-panel.desktop src/dummy-home.desktop ]) Modified: projects/haf/branches/maemo-af-desktop/example-plugins/src/Makefile.am =================================================================== --- projects/haf/branches/maemo-af-desktop/example-plugins/src/Makefile.am 2006-12-29 16:13:48 UTC (rev 8904) +++ projects/haf/branches/maemo-af-desktop/example-plugins/src/Makefile.am 2006-12-29 16:15:16 UTC (rev 8905) @@ -6,6 +6,7 @@ if ENABLE_PYTHON pythonpanel_PYTHON = pythonpanel.py +pythonhome_PYTHON = pythonhome.py endif dummypanel_LTLIBRARIES = libdummypanel.la @@ -17,6 +18,9 @@ endif hildonhomeentry_DATA = dummy-home.desktop +if ENABLE_PYTHON +hildonhomeentry_DATA += python-home.desktop +endif libdummypanel_la_LIBADD = $(GTK_LIBS) $(GLIB_LIBS) $(LIBHILDONDESKTOP_LIBS) Added: projects/haf/branches/maemo-af-desktop/example-plugins/src/python-home.desktop.in =================================================================== --- projects/haf/branches/maemo-af-desktop/example-plugins/src/python-home.desktop.in 2006-12-29 16:13:48 UTC (rev 8904) +++ projects/haf/branches/maemo-af-desktop/example-plugins/src/python-home.desktop.in 2006-12-29 16:15:16 UTC (rev 8905) @@ -0,0 +1,4 @@ +[Desktop Entry] +Name=Python Home Plugin +Type=python +X-Path=pythonhome Added: projects/haf/branches/maemo-af-desktop/example-plugins/src/pythonhome.py =================================================================== --- projects/haf/branches/maemo-af-desktop/example-plugins/src/pythonhome.py 2006-12-29 16:13:48 UTC (rev 8904) +++ projects/haf/branches/maemo-af-desktop/example-plugins/src/pythonhome.py 2006-12-29 16:15:16 UTC (rev 8905) @@ -0,0 +1,22 @@ +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) + + button = gtk.Button("Click me!", gtk.STOCK_CDROM) + button.connect("clicked", self.clicked, None) + button.set_size_request(80, 80); + button.show() + + self.add(button) + +def hd_plugin_get_objects(): + plugin = DummyHomePlugin() + + return [plugin]
- Previous message: [maemo-commits] r8904 - in projects/haf/branches/maemo-af-desktop/python-hildon-desktop: . libhildondesktop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]