summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-01-21 04:05:02 +0100
committerGravatar Martin Szulecki2010-01-21 11:01:15 +0100
commitb8d3a352afd84e789c9ad7c2ab0b3c471425310b (patch)
treeec81f488be1f2f8e890665855d4914b967058067 /src
parentdc03b964c715c098cfd0e43c66f5eebb4bd59fd0 (diff)
downloadsbmanager-b8d3a352afd84e789c9ad7c2ab0b3c471425310b.tar.gz
sbmanager-b8d3a352afd84e789c9ad7c2ab0b3c471425310b.tar.bz2
Prevent clutter_actor_get_parent errors when aligning dock items
Diffstat (limited to 'src')
-rw-r--r--src/sbmanager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sbmanager.c b/src/sbmanager.c
index 19b0cc7..eeb4875 100644
--- a/src/sbmanager.c
+++ b/src/sbmanager.c
@@ -489,6 +489,9 @@ static void gui_dock_align_icons(gboolean animated)
/* set positions */
for (i = 0; i < count; i++) {
SBItem *item = g_list_nth_data(dockitems, i);
+ if (!item || !item->texture) {
+ continue;
+ }
ClutterActor *icon = clutter_actor_get_parent(item->texture);
if (!icon) {
continue;