[maemo-commits] [maemo-commits] r12026 - in projects/haf/trunk/hildon-desktop: . libhildondesktop
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Fri Jun 1 13:19:16 EEST 2007
- Previous message: [maemo-commits] r12025 - in projects/haf/trunk/hildon-theme-layout-4: . rc
- Next message: [maemo-commits] r12027 - in projects/haf/trunk/hildon-desktop: . libhildondesktop src
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: jobi Date: 2007-06-01 13:18:57 +0300 (Fri, 01 Jun 2007) New Revision: 12026 Modified: projects/haf/trunk/hildon-desktop/ChangeLog projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-home-area.c Log: 2007-05-31 Johan Bilien <johan.bilien at nokia.com> * hildon-home-area.c: - do not recompute the alpha mask when resizing Modified: projects/haf/trunk/hildon-desktop/ChangeLog =================================================================== --- projects/haf/trunk/hildon-desktop/ChangeLog 2007-06-01 09:52:19 UTC (rev 12025) +++ projects/haf/trunk/hildon-desktop/ChangeLog 2007-06-01 10:18:57 UTC (rev 12026) @@ -1,5 +1,10 @@ 2007-05-31 Johan Bilien <johan.bilien at nokia.com> + * hildon-home-area.c: + - do not recompute the alpha mask when resizing + +2007-05-31 Johan Bilien <johan.bilien at nokia.com> + * hildon-home-area.[ch]: - inherit from Container instead of Fixed - implement _size_allocate, _size_request, _forall Modified: projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-home-area.c =================================================================== --- projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-home-area.c 2007-06-01 09:52:19 UTC (rev 12025) +++ projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-home-area.c 2007-06-01 10:18:57 UTC (rev 12026) @@ -1018,19 +1018,24 @@ GtkAllocation *allocation, HildonHomeArea *area) { - ChildData *data; + ChildData *data; + gint state = 0; + g_object_get (child, + "state", &state, + NULL); + gtk_container_child_get (GTK_CONTAINER (area), child, "child-data", &data, NULL); - if (data->old_allocation.width != allocation->width || - data->old_allocation.height != allocation->height) + if (state == 0 && /* not moving or resizing */ + (data->old_allocation.width != allocation->width || + data->old_allocation.height != allocation->height)) hildon_home_area_child_build_alpha_mask (area, child); data->old_allocation = *allocation; - } static void @@ -2317,4 +2322,3 @@ hildon_home_area_allocate_child (area, data); } -
- Previous message: [maemo-commits] r12025 - in projects/haf/trunk/hildon-theme-layout-4: . rc
- Next message: [maemo-commits] r12027 - in projects/haf/trunk/hildon-desktop: . libhildondesktop src
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]