[maemo-commits] [maemo-commits] r12099 - in projects/haf/trunk/hildon-desktop: . libhildondesktop

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Jun 5 12:55:27 EEST 2007
Author: moimart
Date: 2007-06-05 12:55:22 +0300 (Tue, 05 Jun 2007)
New Revision: 12099

Modified:
   projects/haf/trunk/hildon-desktop/ChangeLog
   projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-panel-expandable.c
Log:
2007-06-05  Moises Martinez  <moises.martinez at nokia.com>

        * libhildondesktop/hildon-desktop-panel-expandable.c:
        - Added implementation of container remove that just decreases items
        counter.



Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog	2007-06-05 09:54:46 UTC (rev 12098)
+++ projects/haf/trunk/hildon-desktop/ChangeLog	2007-06-05 09:55:22 UTC (rev 12099)
@@ -1,3 +1,9 @@
+2007-06-05  Moises Martinez  <moises.martinez at nokia.com>
+
+	* libhildondesktop/hildon-desktop-panel-expandable.c:
+	- Added implementation of container remove that just decreases items
+	counter.
+
 2007-06-04  Moises Martinez  <moises.martinez at nokia.com>
 
 	* src/hd-desktop.c:

Modified: projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-panel-expandable.c
===================================================================
--- projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-panel-expandable.c	2007-06-05 09:54:46 UTC (rev 12098)
+++ projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-panel-expandable.c	2007-06-05 09:55:22 UTC (rev 12099)
@@ -103,6 +103,8 @@
 
 static void hildon_desktop_panel_expandable_cadd (GtkContainer *container, GtkWidget *widget);
 
+static void hildon_desktop_panel_expandable_cremove (GtkContainer *container, GtkWidget *widget);
+
 static void hildon_desktop_panel_expandable_add_button (HildonDesktopPanel *panel, GtkWidget *widget);
 
 static GObject *hildon_desktop_panel_expandable_constructor (GType gtype,guint n_params,GObjectConstructParam *params);
@@ -139,7 +141,8 @@
 
   hildon_panel_class->add_button = hildon_desktop_panel_expandable_add_button;
 
-  container_class->add = hildon_desktop_panel_expandable_cadd;
+  container_class->add    = hildon_desktop_panel_expandable_cadd;
+  container_class->remove = hildon_desktop_panel_expandable_cremove;
 
   object_class->constructor  = hildon_desktop_panel_expandable_constructor;
   object_class->finalize     = hildon_desktop_panel_expandable_finalize;
@@ -371,6 +374,18 @@
 }
 
 static void 
+hildon_desktop_panel_expandable_cremove (GtkContainer *container, GtkWidget *widget)
+{
+  HildonDesktopPanelExpandable *panel;
+
+  GTK_CONTAINER_CLASS (hildon_desktop_panel_expandable_parent_class)->remove (container, widget);
+
+  panel = HILDON_DESKTOP_PANEL_EXPANDABLE (container);
+
+  panel->priv->n_items--; 
+}
+
+static void 
 hildon_desktop_panel_expandable_get_property (GObject *object, 
 			   		      guint prop_id, 
 			   		      GValue *value, 


More information about the maemo-commits mailing list