[gnome-builder] egg-widget-action-group: add runtime warning
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] egg-widget-action-group: add runtime warning
- Date: Tue, 22 Nov 2016 23:35:41 +0000 (UTC)
commit 354d095410522ff267aeb6e2f89b8f336bd336dd
Author: Christian Hergert <chergert redhat com>
Date: Tue Nov 22 15:29:21 2016 -0800
egg-widget-action-group: add runtime warning
https://bugzilla.gnome.org/show_bug.cgi?id=771232
contrib/egg/egg-widget-action-group.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/contrib/egg/egg-widget-action-group.c b/contrib/egg/egg-widget-action-group.c
index c506544..0e16850 100644
--- a/contrib/egg/egg-widget-action-group.c
+++ b/contrib/egg/egg-widget-action-group.c
@@ -630,6 +630,7 @@ egg_widget_action_group_set_action_enabled (EggWidgetActionGroup *self,
{
g_return_if_fail (EGG_IS_WIDGET_ACTION_GROUP (self));
g_return_if_fail (action_name != NULL);
+ g_return_if_fail (egg_widget_action_group_has_action (G_ACTION_GROUP (self), action_name));
enabled = !!enabled;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]