From 678d5fd710b54e79e3fdabac90e79ffa7080fc32 Mon Sep 17 00:00:00 2001 From: Brandon Lewis Date: Tue, 3 Aug 2010 19:42:35 +0200 Subject: [PATCH] don't connect to selected objects unless selection is homogenous --- tests/examples/ges-ui.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/examples/ges-ui.c b/tests/examples/ges-ui.c index d6c602868c..49407e523e 100644 --- a/tests/examples/ges-ui.c +++ b/tests/examples/ges-ui.c @@ -489,10 +489,6 @@ app_update_selection (App * app) app->selected_objects = info.objects; app->n_selected = info.n; - for (cur = app->selected_objects; cur; cur = cur->next) { - connect_to_object (cur->data, app); - } - type = G_TYPE_NONE; if (app->selected_objects) { type = G_TYPE_FROM_INSTANCE (app->selected_objects->data); @@ -503,6 +499,13 @@ app_update_selection (App * app) } } } + + if (type != G_TYPE_NONE) { + for (cur = app->selected_objects; cur; cur = cur->next) { + connect_to_object (cur->data, app); + } + } + app->selected_type = type; }