[nautilus] desktop-icon-view: initialize allocation before setting it
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] desktop-icon-view: initialize allocation before setting it
- Date: Sun, 19 Sep 2010 17:52:31 +0000 (UTC)
commit a4f454825861c1fb65e8d52979a67a81c5133974
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 d1dfcfd..11181bb 100644
--- a/src/file-manager/fm-desktop-icon-view.c
+++ b/src/file-manager/fm-desktop-icon-view.c
@@ -565,6 +565,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]