summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Schwinn <alexxcons@xfce.org>2021-04-12 13:34:52 +0200
committerAlexander Schwinn <alexxcons@xfce.org>2021-04-12 13:36:20 +0200
commitbad2d2b50d71925b3fd351f406a0c445d03ed9b2 (patch)
tree84bd3bc2665bcd48da80d44909b2d175fad9d239
parent3bb959800805ef8b149000b96ac322af4ef95a18 (diff)
downloadexo-bad2d2b50d71925b3fd351f406a0c445d03ed9b2.tar.gz
Properly initialize GdkRectangle to prevent crash (Issue #57)
Crash happens when assertions are enabled in gtk packages. See as well: https://gitlab.xfce.org/xfce/thunar/-/issues/556 Fixes #57
-rw-r--r--exo/exo-icon-view.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/exo/exo-icon-view.c b/exo/exo-icon-view.c
index 50e7f90..89ed96f 100644
--- a/exo/exo-icon-view.c
+++ b/exo/exo-icon-view.c
@@ -3565,6 +3565,7 @@ exo_icon_view_calculate_item_size (ExoIconView *icon_view,
{
GdkRectangle cell_area, aligned_area;
+ cell_area.x = cell_area.y = 0;
cell_area.width = req.width;
cell_area.height = req.height;