Moved _moo_edit_check_actions() to mooeditaction.c

master
Yevgen Muntyan 2006-08-19 01:40:14 -05:00
parent 69affc0bcc
commit 76e05fdac1
1 changed files with 0 additions and 25 deletions

View File

@ -38,8 +38,6 @@ static void moo_edit_class_new_action_custom (MooEditClass *klass,
gpointer data, gpointer data,
GDestroyNotify notify); GDestroyNotify notify);
static void moo_edit_action_check_state (MooEditAction *action);
#define MOO_EDIT_ACTIONS_QUARK (moo_edit_get_actions_quark ()) #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 void
_moo_edit_class_init_actions (MooEditClass *klass) _moo_edit_class_init_actions (MooEditClass *klass)
{ {
@ -628,12 +612,3 @@ _moo_edit_class_init_actions (MooEditClass *klass)
"condition::sensitive", "has-text", "condition::sensitive", "has-text",
NULL); 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);
}