[maemo-commits] [maemo-commits] r14071 - in projects/haf/trunk/hildon-desktop: . libhildondesktop
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Tue Sep 25 14:51:09 EEST 2007
- Previous message: [maemo-commits] r14070 - projects/haf/hafbuildbot
- Next message: [maemo-commits] r14072 - in projects/haf/trunk/osso-gnome-vfs2/debian: . patches
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: jobi Date: 2007-09-25 14:51:08 +0300 (Tue, 25 Sep 2007) New Revision: 14071 Added: projects/haf/trunk/hildon-desktop/libhildondesktop/home-item.c projects/haf/trunk/hildon-desktop/libhildondesktop/home-item.h Modified: projects/haf/trunk/hildon-desktop/ChangeLog projects/haf/trunk/hildon-desktop/libhildondesktop/Makefile.am Log: 2007-09-25 Johan Bilien <johan.bilien at nokia.com> * home-item.[ch]: added empty wrapper around HildonDesktopHomeItem, for API coherence with TasknavigatorItem and StatusbarItem. Modified: projects/haf/trunk/hildon-desktop/ChangeLog =================================================================== --- projects/haf/trunk/hildon-desktop/ChangeLog 2007-09-25 11:47:19 UTC (rev 14070) +++ projects/haf/trunk/hildon-desktop/ChangeLog 2007-09-25 11:51:08 UTC (rev 14071) @@ -1,3 +1,8 @@ +2007-09-25 Johan Bilien <johan.bilien at nokia.com> + + * home-item.[ch]: added empty wrapper around HildonDesktopHomeItem, + for API coherence with TasknavigatorItem and StatusbarItem. + 2007-09-25 Lucas Rocha <lucas.rocha at nokia.com> * src/hd-switcher-menu-item.c (hd_switcher_menu_item_constructor): Modified: projects/haf/trunk/hildon-desktop/libhildondesktop/Makefile.am =================================================================== --- projects/haf/trunk/hildon-desktop/libhildondesktop/Makefile.am 2007-09-25 11:47:19 UTC (rev 14070) +++ projects/haf/trunk/hildon-desktop/libhildondesktop/Makefile.am 2007-09-25 11:51:08 UTC (rev 14071) @@ -28,6 +28,7 @@ statusbar-item-socket.h \ tasknavigator-item.h \ tasknavigator-item-socket.h \ + home-item.h \ hildon-thumb-menu-item.h \ hildon-desktop-home-item.h \ hildon-home-area.h \ @@ -66,7 +67,9 @@ hildon-home-window.c \ hildon-home-window.h \ hildon-home-titlebar.c \ - hildon-home-titlebar.h + hildon-home-titlebar.h \ + home-item.c \ + home-item.h BUILT_SOURCES = \ hildon-desktop-marshalers.c \ Added: projects/haf/trunk/hildon-desktop/libhildondesktop/home-item.c =================================================================== --- projects/haf/trunk/hildon-desktop/libhildondesktop/home-item.c 2007-09-25 11:47:19 UTC (rev 14070) +++ projects/haf/trunk/hildon-desktop/libhildondesktop/home-item.c 2007-09-25 11:51:08 UTC (rev 14071) @@ -0,0 +1,53 @@ +/* + * This file is part of hildon-desktop + * + * Copyright (C) 2007 Nokia Corporation. + * + * Contact: Karoliina Salminen <karoliina.t.salminen at nokia.com> + * Author: Johan Bilien <johan.bilien at nokia.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public License + * version 2.1 as published by the Free Software Foundation. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include "home-item.h" + + +G_DEFINE_TYPE (HomeItem, home_item, HILDON_DESKTOP_TYPE_HOME_ITEM) + +static void +home_item_init (HomeItem *item) +{ +} + +static void +home_item_class_init (HomeItemClass *klass) +{ +} + +void +home_item_set_resize_type (HomeItem *item, + HildonDesktopHomeItemResizeType resize_type) +{ + g_return_if_fail (IS_HOME_ITEM (item)); + + hildon_desktop_home_item_set_resize_type (HILDON_DESKTOP_HOME_ITEM (item), + resize_type); + +} Added: projects/haf/trunk/hildon-desktop/libhildondesktop/home-item.h =================================================================== --- projects/haf/trunk/hildon-desktop/libhildondesktop/home-item.h 2007-09-25 11:47:19 UTC (rev 14070) +++ projects/haf/trunk/hildon-desktop/libhildondesktop/home-item.h 2007-09-25 11:51:08 UTC (rev 14071) @@ -0,0 +1,66 @@ +/* + * This file is part of hildon-desktop + * + * Copyright (C) 2007 Nokia Corporation. + * + * Contact: Karoliina Salminen <karoliina.t.salminen at nokia.com> + * Author: Johan Bilien <johan.bilien at nokia.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public License + * version 2.1 as published by the Free Software Foundation. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + + +#ifndef __HOME_ITEM_H__ +#define __HOME_ITEM_H__ + +#include <glib.h> +#include <glib-object.h> +#include <libhildondesktop/hildon-desktop-home-item.h> + +G_BEGIN_DECLS + +#define TYPE_HOME_ITEM (home_item_get_type ()) +#define HOME_ITEM(obj) (GTK_CHECK_CAST (obj, TYPE_HOME_ITEM, HomeItem)) +#define HOME_ITEM_CLASS(klass) \ + (GTK_CHECK_CLASS_CAST ((klass), TYPE_HOME_ITEM, HomeItemClass)) +#define IS_HOME_ITEM(obj) \ + (GTK_CHECK_TYPE (obj, TYPE_HOME_ITEM)) +#define IS_HOME_ITEM_CLASS(klass) \ + (GTK_CHECK_CLASS_TYPE ((klass), TYPE_HOME_ITEM)) + +#define TYPE_HOME_ITEM_RESIZE_TYPE \ + (hildon_desktop_home_item_resize_type_get_type()) + + +typedef struct _HomeItem HomeItem; +typedef struct _HomeItemClass HomeItemClass; + +struct _HomeItem { + HildonDesktopHomeItem parent; +}; + +struct _HomeItemClass { + HildonDesktopHomeItemClass parent_class; + +}; + +GType home_item_get_type (void); + +void home_item_set_resize_type (HomeItem *item, + HildonDesktopHomeItemResizeType resize_type); + +G_END_DECLS +#endif /* __HOME_ITEM_H__ */
- Previous message: [maemo-commits] r14070 - projects/haf/hafbuildbot
- Next message: [maemo-commits] r14072 - in projects/haf/trunk/osso-gnome-vfs2/debian: . patches
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]