[maemo-commits] [maemo-commits] r10568 - in projects/haf/branches/maemo-af-desktop/example-plugins: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Wed Mar 14 09:55:55 EET 2007
Author: lucasr
Date: 2007-03-14 09:55:54 +0200 (Wed, 14 Mar 2007)
New Revision: 10568

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/dummy-home-plugin.c
   projects/haf/branches/maemo-af-desktop/example-plugins/src/dummy-home-plugin.h
   projects/haf/branches/maemo-af-desktop/example-plugins/src/pythonhome.py
Log:
2006-03-14  Lucas Rocha  <lucas.rocha at nokia.com>

	* src/dummy-home-plugin.c, src/pythonhome.py: update home plugins to
	match API changes in libhildondesktop.


Modified: projects/haf/branches/maemo-af-desktop/example-plugins/ChangeLog
===================================================================
--- projects/haf/branches/maemo-af-desktop/example-plugins/ChangeLog	2007-03-13 21:12:16 UTC (rev 10567)
+++ projects/haf/branches/maemo-af-desktop/example-plugins/ChangeLog	2007-03-14 07:55:54 UTC (rev 10568)
@@ -1,3 +1,8 @@
+2006-03-14  Lucas Rocha  <lucas.rocha at nokia.com>
+
+	* src/dummy-home-plugin.c, src/pythonhome.py: update home plugins to
+	match API changes in libhildondesktop.
+
 2006-01-03  Lucas Rocha  <lucas.rocha at nokia.com>
 
 	* src/pythonhome.py, src/pythonpanel.py: only show an icon, not the

Modified: projects/haf/branches/maemo-af-desktop/example-plugins/configure.ac
===================================================================
--- projects/haf/branches/maemo-af-desktop/example-plugins/configure.ac	2007-03-13 21:12:16 UTC (rev 10567)
+++ projects/haf/branches/maemo-af-desktop/example-plugins/configure.ac	2007-03-14 07:55:54 UTC (rev 10568)
@@ -38,7 +38,7 @@
 AC_SUBST(GLIB_LIBS)
 AC_SUBST(GLIB_CFLAGS)
 
-PKG_CHECK_MODULES(LIBHILDONDESKTOP, libhildondesktop >= 3.9)
+PKG_CHECK_MODULES(LIBHILDONDESKTOP, libhildondesktop)
 AC_SUBST(LIBHILDONDESKTOP_LIBS)
 AC_SUBST(LIBHILDONDESKTOP_CFLAGS)
 

Modified: projects/haf/branches/maemo-af-desktop/example-plugins/src/dummy-home-plugin.c
===================================================================
--- projects/haf/branches/maemo-af-desktop/example-plugins/src/dummy-home-plugin.c	2007-03-13 21:12:16 UTC (rev 10567)
+++ projects/haf/branches/maemo-af-desktop/example-plugins/src/dummy-home-plugin.c	2007-03-14 07:55:54 UTC (rev 10568)
@@ -28,7 +28,7 @@
 
 #include "dummy-home-plugin.h"
 
-HD_DEFINE_PLUGIN (DummyHomePlugin, dummy_home_plugin, HILDON_TYPE_HOME_APPLET);
+HD_DEFINE_PLUGIN (DummyHomePlugin, dummy_home_plugin, HILDON_DESKTOP_TYPE_HOME_ITEM);
 
 static void
 dummy_home_plugin_init (DummyHomePlugin *home_plugin)

Modified: projects/haf/branches/maemo-af-desktop/example-plugins/src/dummy-home-plugin.h
===================================================================
--- projects/haf/branches/maemo-af-desktop/example-plugins/src/dummy-home-plugin.h	2007-03-13 21:12:16 UTC (rev 10567)
+++ projects/haf/branches/maemo-af-desktop/example-plugins/src/dummy-home-plugin.h	2007-03-14 07:55:54 UTC (rev 10568)
@@ -26,7 +26,7 @@
 #define DUMMY_HOME_PLUGIN_H
 
 #include <glib-object.h>
-#include <libhildondesktop/tasknavigator-item.h>
+#include <libhildondesktop/hildon-desktop-home-item.h>
 
 G_BEGIN_DECLS
 
@@ -43,14 +43,14 @@
 
 struct _DummyHomePlugin 
 {
-  HildonHomeApplet applet;
+  HildonDesktopHomeItem item;
 
   DummyHomePluginPrivate *priv;
 };
 
 struct _DummyHomePluginClass 
 {
-  HildonHomeAppletClass parent_class;
+  HildonDesktopHomeItemClass parent_class;
 };
 
 GType  dummy_home_plugin_get_type  (void);

Modified: projects/haf/branches/maemo-af-desktop/example-plugins/src/pythonhome.py
===================================================================
--- projects/haf/branches/maemo-af-desktop/example-plugins/src/pythonhome.py	2007-03-13 21:12:16 UTC (rev 10567)
+++ projects/haf/branches/maemo-af-desktop/example-plugins/src/pythonhome.py	2007-03-14 07:55:54 UTC (rev 10568)
@@ -25,12 +25,12 @@
 import pygtk
 import hildondesktop
 
-class DummyHomePlugin(hildondesktop.HomeApplet):
+class DummyHomePlugin(hildondesktop.HomeItem):
     def clicked(self, widget, data=None):
         print "Clicked!!!"
 
     def __init__(self):
-        hildondesktop.HomeApplet.__init__(self)
+        hildondesktop.HomeItem.__init__(self)
 
         image = gtk.Image()
         image.set_from_stock(gtk.STOCK_CDROM, gtk.ICON_SIZE_LARGE_TOOLBAR)


More information about the maemo-commits mailing list