]> Pileus Git - ~andy/gtk/blob - gtk/gsimpleactionobserver.h
c3340f71b23f3cb35bbdfbfbebdb03b08d32bcf8
[~andy/gtk] / gtk / gsimpleactionobserver.h
1 /*
2  * Copyright © 2012 Canonical Limited
3  *
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.
8  *
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.
13  *
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,
17  * USA.
18  *
19  * Authors: Ryan Lortie <desrt@desrt.ca>
20  */
21
22 #ifndef __G_SIMPLE_ACTION_OBSERVER_H__
23 #define __G_SIMPLE_ACTION_OBSERVER_H__
24
25 #include "gactionobserver.h"
26
27 G_BEGIN_DECLS
28
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))
35
36 typedef struct _GSimpleActionObserver                       GSimpleActionObserver;
37
38 G_GNUC_INTERNAL
39 GType                   g_simple_action_observer_get_type               (void);
40 G_GNUC_INTERNAL
41 GSimpleActionObserver * g_simple_action_observer_new                    (GActionObservable     *observable,
42                                                                          const gchar           *action_name,
43                                                                          GVariant              *target);
44 G_GNUC_INTERNAL
45 void                    g_simple_action_observer_activate               (GSimpleActionObserver *observer);
46 G_GNUC_INTERNAL
47 gboolean                g_simple_action_observer_get_active             (GSimpleActionObserver *observer);
48 G_GNUC_INTERNAL
49 gboolean                g_simple_action_observer_get_enabled            (GSimpleActionObserver *observer);
50
51 G_END_DECLS
52
53 #endif /* __G_SIMPLE_ACTION_OBSERVER_H__ */