From 76e05fdac1165f274279d017dc3ccf3802d4eddb Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Sat, 19 Aug 2006 01:40:14 -0500 Subject: [PATCH] Moved _moo_edit_check_actions() to mooeditaction.c --- moo/mooedit/mooeditaction-factory.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/moo/mooedit/mooeditaction-factory.c b/moo/mooedit/mooeditaction-factory.c index d3c8764b..769bae7f 100644 --- a/moo/mooedit/mooeditaction-factory.c +++ b/moo/mooedit/mooeditaction-factory.c @@ -38,8 +38,6 @@ static void moo_edit_class_new_action_custom (MooEditClass *klass, gpointer data, GDestroyNotify notify); -static void moo_edit_action_check_state (MooEditAction *action); - #define MOO_EDIT_ACTIONS_QUARK (moo_edit_get_actions_quark ()) @@ -564,20 +562,6 @@ _moo_edit_add_class_actions (MooEdit *edit) } -void -_moo_edit_check_actions (MooEdit *edit) -{ - GList *actions = moo_action_collection_list_actions (edit->priv->actions); - - while (actions) - { - if (MOO_IS_EDIT_ACTION (actions->data)) - moo_edit_action_check_state (actions->data); - actions = g_list_delete_link (actions, actions); - } -} - - void _moo_edit_class_init_actions (MooEditClass *klass) { @@ -628,12 +612,3 @@ _moo_edit_class_init_actions (MooEditClass *klass) "condition::sensitive", "has-text", NULL); } - - -static void -moo_edit_action_check_state (MooEditAction *action) -{ - g_return_if_fail (MOO_IS_EDIT_ACTION (action)); - g_return_if_fail (MOO_EDIT_ACTION_GET_CLASS (action)->check_state != NULL); - MOO_EDIT_ACTION_GET_CLASS (action)->check_state (action); -}