2 * Copyright © 2012 Canonical Limited
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * licence or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307,
19 * Authors: Ryan Lortie <desrt@desrt.ca>
22 #ifndef __G_SIMPLE_ACTION_OBSERVER_H__
23 #define __G_SIMPLE_ACTION_OBSERVER_H__
25 #include "gactionobserver.h"
29 #define G_TYPE_SIMPLE_ACTION_OBSERVER (g_simple_action_observer_get_type ())
30 #define G_SIMPLE_ACTION_OBSERVER(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
31 G_TYPE_SIMPLE_ACTION_OBSERVER, \
32 GSimpleActionObserver))
33 #define G_IS_SIMPLE_ACTION_OBSERVER(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
34 G_TYPE_SIMPLE_ACTION_OBSERVER))
36 typedef struct _GSimpleActionObserver GSimpleActionObserver;
39 GType g_simple_action_observer_get_type (void);
41 GSimpleActionObserver * g_simple_action_observer_new (GActionObservable *observable,
42 const gchar *action_name,
45 void g_simple_action_observer_activate (GSimpleActionObserver *observer);
47 gboolean g_simple_action_observer_get_active (GSimpleActionObserver *observer);
49 gboolean g_simple_action_observer_get_enabled (GSimpleActionObserver *observer);
53 #endif /* __G_SIMPLE_ACTION_OBSERVER_H__ */