summaryrefslogtreecommitdiff
path: root/mate-window-picker-applet/task-item.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-06-25 12:33:16 +0200
committerStefano Karapetsas <[email protected]>2014-06-25 12:33:16 +0200
commitd2f003d2583af2ae9c526bb55bfe675fccf20f04 (patch)
tree483aa0b8f2cebcda54481055d2aadce8b6ee3313 /mate-window-picker-applet/task-item.c
parente036725df40fb3e47615b20c74b9e836906a2a74 (diff)
parent551983e0fa42ee207f136e64ca4a8dea545bb57a (diff)
downloadmate-netbook-d2f003d2583af2ae9c526bb55bfe675fccf20f04.tar.bz2
mate-netbook-d2f003d2583af2ae9c526bb55bfe675fccf20f04.tar.xz
Merge pull request #10 from daschuer/allocation_null
Check for allocation = NULL. This fixes a segfault during applet load
Diffstat (limited to 'mate-window-picker-applet/task-item.c')
-rw-r--r--mate-window-picker-applet/task-item.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mate-window-picker-applet/task-item.c b/mate-window-picker-applet/task-item.c
index cafcb2c..366dea0 100644
--- a/mate-window-picker-applet/task-item.c
+++ b/mate-window-picker-applet/task-item.c
@@ -106,9 +106,11 @@ update_hints (TaskItem *item)
/* Set the minimize hint for the window */
gtk_widget_get_allocation (widget, allocation);
- wnck_window_set_icon_geometry (window, x, y,
+ if (allocation) {
+ wnck_window_set_icon_geometry (window, x, y,
allocation->width,
allocation->height);
+ }
}
static gboolean