[gnome-builder/gnome-builder-3-24] build-manager: Remove extraneous calls to propagate_action_enabled()
- From: Matthew Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-24] build-manager: Remove extraneous calls to propagate_action_enabled()
- Date: Tue, 18 Apr 2017 22:50:38 +0000 (UTC)
commit 869af4e0d0dc5e88fc71a2d2dd179e2dfe4afed6
Author: Matthew Leeds <mleeds redhat com>
Date: Tue Apr 18 17:44:08 2017 -0500
build-manager: Remove extraneous calls to propagate_action_enabled()
ide_build_manager_propagate_action_enabled() needs to be called whenever
the enabled/disabled state of any of the actions in that class changes,
but it's already called in update_action_enabled() so there's no need to
call it in other places.
libide/buildsystem/ide-build-manager.c | 24 +++---------------------
1 files changed, 3 insertions(+), 21 deletions(-)
---
diff --git a/libide/buildsystem/ide-build-manager.c b/libide/buildsystem/ide-build-manager.c
index 84fe0a9..2014e2e 100644
--- a/libide/buildsystem/ide-build-manager.c
+++ b/libide/buildsystem/ide-build-manager.c
@@ -316,8 +316,6 @@ failure:
egg_signal_group_set_target (self->pipeline_signals, NULL);
}
- ide_build_manager_propagate_action_enabled (self);
-
IDE_EXIT;
}
@@ -401,8 +399,6 @@ ide_build_manager_invalidate_pipeline (IdeBuildManager *self)
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_MESSAGE]);
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_RUNNING_TIME]);
- ide_build_manager_propagate_action_enabled (self);
-
IDE_EXIT;
}
@@ -994,8 +990,6 @@ ide_build_manager_execute_cb (GObject *object,
g_task_return_boolean (task, TRUE);
failure:
- ide_build_manager_propagate_action_enabled (self);
-
IDE_EXIT;
}
@@ -1036,8 +1030,6 @@ ide_build_manager_save_all_cb (GObject *object,
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_LAST_BUILD_TIME]);
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_RUNNING_TIME]);
- ide_build_manager_propagate_action_enabled (self);
-
IDE_EXIT;
}
@@ -1134,8 +1126,6 @@ ide_build_manager_execute_async (IdeBuildManager *self,
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_LAST_BUILD_TIME]);
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_RUNNING_TIME]);
- ide_build_manager_propagate_action_enabled (self);
-
IDE_EXIT;
}
@@ -1186,15 +1176,9 @@ ide_build_manager_clean_cb (GObject *object,
g_assert (IDE_IS_BUILD_MANAGER (self));
if (!ide_build_pipeline_clean_finish (pipeline, result, &error))
- {
- g_task_return_error (task, g_steal_pointer (&error));
- IDE_GOTO (failure);
- }
-
- g_task_return_boolean (task, TRUE);
-
-failure:
- ide_build_manager_propagate_action_enabled (self);
+ g_task_return_error (task, g_steal_pointer (&error));
+ else
+ g_task_return_boolean (task, TRUE);
}
void
@@ -1239,8 +1223,6 @@ ide_build_manager_clean_async (IdeBuildManager *self,
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_HAS_DIAGNOSTICS]);
- ide_build_manager_propagate_action_enabled (self);
-
IDE_EXIT;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]