[nautilus/gnome-2-32-fixes: 4/4] desktop-icon-view: initialize allocation before setting it



commit 2e2e809f01cb0e534b1281a7596a65c0c0c7eb44
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun Sep 19 19:43:52 2010 +0200

    desktop-icon-view: initialize allocation before setting it
    
    This probably fixes a number of stack-corruption crashes on 2.31.x

 src/file-manager/fm-desktop-icon-view.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/file-manager/fm-desktop-icon-view.c b/src/file-manager/fm-desktop-icon-view.c
index e1a9d9f..9ca4dc1 100644
--- a/src/file-manager/fm-desktop-icon-view.c
+++ b/src/file-manager/fm-desktop-icon-view.c
@@ -560,6 +560,7 @@ fm_desktop_icon_view_init (FMDesktopIconView *desktop_icon_view)
 	nautilus_icon_container_set_store_layout_timestamps (icon_container, TRUE);
 
 	/* Set allocation to be at 0, 0 */
+	gtk_widget_get_allocation (GTK_WIDGET (icon_container), &allocation);
 	allocation.x = 0;
 	allocation.y = 0;
 	gtk_widget_set_allocation (GTK_WIDGET (icon_container), &allocation);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]