2006-08-15 02:12:41 -05:00
|
|
|
/*
|
|
|
|
* mooactionbase-private.h
|
|
|
|
*
|
2010-12-21 20:15:45 -08:00
|
|
|
* Copyright (C) 2004-2010 by Yevgen Muntyan <emuntyan@users.sourceforge.net>
|
2006-08-15 02:12:41 -05:00
|
|
|
*
|
2008-09-05 17:20:50 -05:00
|
|
|
* This file is part of medit. medit is free software; you can
|
|
|
|
* redistribute it and/or modify it under the terms of the
|
|
|
|
* GNU Lesser General Public License as published by the
|
|
|
|
* Free Software Foundation; either version 2.1 of the License,
|
|
|
|
* or (at your option) any later version.
|
2006-08-15 02:12:41 -05:00
|
|
|
*
|
2008-09-05 17:20:50 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with medit. If not, see <http://www.gnu.org/licenses/>.
|
2006-08-15 02:12:41 -05:00
|
|
|
*/
|
|
|
|
|
2007-04-12 10:31:28 -05:00
|
|
|
#ifndef MOO_ACTION_BASE_PRIVATE_H
|
|
|
|
#define MOO_ACTION_BASE_PRIVATE_H
|
2006-08-15 02:12:41 -05:00
|
|
|
|
|
|
|
#include <mooutils/mooactionbase.h>
|
2011-09-26 00:41:51 -07:00
|
|
|
#include <gtk/gtk.h>
|
2006-08-15 02:12:41 -05:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
|
|
#define MOO_ACTION_BASE_PROPS(prefix) \
|
|
|
|
prefix##_PROP_0, \
|
|
|
|
prefix##_PROP_DISPLAY_NAME, \
|
2008-09-01 04:22:07 -05:00
|
|
|
prefix##_PROP_DEFAULT_ACCEL, \
|
2006-11-25 15:01:49 -06:00
|
|
|
prefix##_PROP_CONNECT_ACCEL, \
|
2006-08-15 02:12:41 -05:00
|
|
|
prefix##_PROP_NO_ACCEL, \
|
2006-11-25 15:01:49 -06:00
|
|
|
prefix##_PROP_ACCEL_EDITABLE, \
|
2006-08-15 02:12:41 -05:00
|
|
|
prefix##_PROP_FORCE_ACCEL_LABEL, \
|
|
|
|
prefix##_PROP_DEAD, \
|
|
|
|
prefix##_PROP_ACTIVE, \
|
|
|
|
prefix##_PROP_HAS_SUBMENU, \
|
2007-06-09 06:58:45 -05:00
|
|
|
prefix##_PROP_USE_UNDERLINE, \
|
2006-08-15 02:12:41 -05:00
|
|
|
/* these are overridden GtkAction properties */ \
|
|
|
|
prefix##_PROP_LABEL, \
|
|
|
|
prefix##_PROP_TOOLTIP
|
|
|
|
|
|
|
|
|
|
|
|
#define MOO_ACTION_BASE_SET_GET_PROPERTY(prefix,func) \
|
|
|
|
case prefix##_PROP_DISPLAY_NAME: \
|
2008-09-01 04:22:07 -05:00
|
|
|
case prefix##_PROP_DEFAULT_ACCEL: \
|
2006-11-25 15:01:49 -06:00
|
|
|
case prefix##_PROP_CONNECT_ACCEL: \
|
2006-08-15 02:12:41 -05:00
|
|
|
case prefix##_PROP_NO_ACCEL: \
|
2006-11-25 15:01:49 -06:00
|
|
|
case prefix##_PROP_ACCEL_EDITABLE: \
|
2006-08-15 02:12:41 -05:00
|
|
|
case prefix##_PROP_FORCE_ACCEL_LABEL: \
|
|
|
|
case prefix##_PROP_DEAD: \
|
|
|
|
case prefix##_PROP_ACTIVE: \
|
|
|
|
case prefix##_PROP_HAS_SUBMENU: \
|
2007-06-09 06:58:45 -05:00
|
|
|
case prefix##_PROP_USE_UNDERLINE: \
|
2006-08-15 02:12:41 -05:00
|
|
|
case prefix##_PROP_LABEL: \
|
|
|
|
case prefix##_PROP_TOOLTIP: \
|
|
|
|
func (object, property_id, value, pspec); \
|
|
|
|
break
|
|
|
|
|
|
|
|
#define MOO_ACTION_BASE_SET_PROPERTY(prefix) MOO_ACTION_BASE_SET_GET_PROPERTY(prefix, _moo_action_base_set_property)
|
|
|
|
#define MOO_ACTION_BASE_GET_PROPERTY(prefix) MOO_ACTION_BASE_SET_GET_PROPERTY(prefix, _moo_action_base_get_property)
|
|
|
|
|
|
|
|
|
|
|
|
void _moo_action_base_init_class (GObjectClass *klass);
|
|
|
|
void _moo_action_base_set_property (GObject *object,
|
|
|
|
guint property_id,
|
|
|
|
const GValue *value,
|
|
|
|
GParamSpec *pspec);
|
|
|
|
void _moo_action_base_get_property (GObject *object,
|
|
|
|
guint property_id,
|
|
|
|
GValue *value,
|
|
|
|
GParamSpec *pspec);
|
2007-06-09 06:58:45 -05:00
|
|
|
void _moo_action_base_connect_proxy (GtkAction *action,
|
|
|
|
GtkWidget *proxy);
|
|
|
|
void _moo_action_base_init_instance (gpointer action);
|
2006-08-15 02:12:41 -05:00
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2007-04-12 10:31:28 -05:00
|
|
|
#endif /* MOO_ACTION_BASE_PRIVATE_H */
|