medit/moo/mooutils/mooaction.h

68 lines
2.7 KiB
C
Raw Normal View History

2005-06-22 11:20:32 -07:00
/*
* mooaction.h
2005-06-22 11:20:32 -07:00
*
* Copyright (C) 2004-2006 by Yevgen Muntyan <muntyan@math.tamu.edu>
2005-06-22 11:20:32 -07:00
*
* 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_ACTION_H__
#define __MOO_ACTION_H__
2005-06-22 11:20:32 -07:00
2006-05-08 21:57:16 -07:00
#include <gtk/gtkactiongroup.h>
#include <mooutils/mooclosure.h>
2005-06-22 11:20:32 -07:00
G_BEGIN_DECLS
2006-05-08 21:57:16 -07:00
const char *moo_action_get_display_name (GtkAction *action);
void moo_action_set_display_name (GtkAction *action,
const char *name);
2005-06-22 11:20:32 -07:00
2006-05-08 21:57:16 -07:00
const char *moo_action_get_default_accel (GtkAction *action);
void moo_action_set_default_accel (GtkAction *action,
const char *accel);
2006-05-08 21:57:16 -07:00
void moo_action_set_no_accel (GtkAction *action,
2005-06-22 11:20:32 -07:00
gboolean no_accel);
2006-05-08 21:57:16 -07:00
gboolean moo_action_get_no_accel (GtkAction *action);
2005-06-22 11:20:32 -07:00
2006-05-08 21:57:16 -07:00
void moo_sync_toggle_action (GtkAction *action,
gpointer master,
const char *prop,
gboolean invert);
2005-06-22 11:20:32 -07:00
2006-05-08 21:57:16 -07:00
void _moo_action_set_force_accel_label (GtkAction *action,
gboolean force);
gboolean _moo_action_get_force_accel_label (GtkAction *action);
2005-06-22 11:20:32 -07:00
2006-05-08 21:57:16 -07:00
void _moo_action_set_accel_path (GtkAction *action,
const char *accel_path);
2006-05-08 21:57:16 -07:00
const char *_moo_action_get_accel_path (GtkAction *action);
const char *_moo_action_get_accel (GtkAction *action);
2006-05-08 21:57:16 -07:00
const char *_moo_action_make_accel_path (const char *group_id,
2005-06-22 11:20:32 -07:00
const char *action_id);
2006-05-08 21:57:16 -07:00
gboolean _moo_action_get_dead (GtkAction *action);
void _moo_action_set_dead (GtkAction *action,
gboolean dead);
gboolean _moo_action_get_has_submenu (GtkAction *action);
void _moo_action_set_has_submenu (GtkAction *action,
gboolean dead);
void _moo_action_set_closure (GtkAction *action,
MooClosure *closure);
MooClosure *_moo_action_get_closure (GtkAction *action);
2005-06-22 11:20:32 -07:00
G_END_DECLS
#endif /* __MOO_ACTION_H__ */