/* * mooeditaction-factory.h * * Copyright (C) 2004-2006 by Yevgen Muntyan * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * See COPYING file that comes with this distribution. */ #ifndef __MOO_EDIT_ACTION_FACTORY_H__ #define __MOO_EDIT_ACTION_FACTORY_H__ #include #include #include G_BEGIN_DECLS typedef GtkAction *(*MooEditActionFunc) (MooEdit *edit, gpointer data); void moo_edit_class_new_action (MooEditClass *klass, const char *id, const char *first_prop_name, ...) G_GNUC_NULL_TERMINATED; void moo_edit_class_new_action_type (MooEditClass *klass, const char *id, GType type); void moo_edit_class_remove_action (MooEditClass *klass, const char *id); GtkActionGroup *moo_edit_get_actions (MooEdit *edit); GtkAction *moo_edit_get_action_by_id (MooEdit *edit, const char *action_id); G_END_DECLS #endif /* __MOO_EDIT_ACTION_FACTORY_H__ */