1 | /* |
---|---|
2 | * Copyright © 2012 Canonical Limited |
3 | * |
4 | * This library 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, see <http://www.gnu.org/licenses/>. |
16 | * |
17 | * Authors: Ryan Lortie <desrt@desrt.ca> |
18 | */ |
19 | |
20 | #ifndef __GTK_ACTION_HELPER_H__ |
21 | #define __GTK_ACTION_HELPER_H__ |
22 | |
23 | #include <gtk/gtkapplication.h> |
24 | #include <gtk/gtkactionable.h> |
25 | #include <gtk/gtkmodelbuttonprivate.h> |
26 | |
27 | #define GTK_TYPE_ACTION_HELPER (gtk_action_helper_get_type ()) |
28 | #define GTK_ACTION_HELPER(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \ |
29 | GTK_TYPE_ACTION_HELPER, GtkActionHelper)) |
30 | #define GTK_IS_ACTION_HELPER(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \ |
31 | GTK_TYPE_ACTION_HELPER)) |
32 | |
33 | typedef struct _GtkActionHelper GtkActionHelper; |
34 | |
35 | GType gtk_action_helper_get_type (void); |
36 | |
37 | GtkActionHelper * gtk_action_helper_new (GtkActionable *widget); |
38 | |
39 | void gtk_action_helper_set_action_name (GtkActionHelper *helper, |
40 | const char *action_name); |
41 | void gtk_action_helper_set_action_target_value (GtkActionHelper *helper, |
42 | GVariant *action_target); |
43 | const char * gtk_action_helper_get_action_name (GtkActionHelper *helper); |
44 | GVariant * gtk_action_helper_get_action_target_value (GtkActionHelper *helper); |
45 | |
46 | gboolean gtk_action_helper_get_enabled (GtkActionHelper *helper); |
47 | gboolean gtk_action_helper_get_active (GtkActionHelper *helper); |
48 | |
49 | void gtk_action_helper_activate (GtkActionHelper *helper); |
50 | |
51 | GtkButtonRole gtk_action_helper_get_role (GtkActionHelper *helper); |
52 | |
53 | |
54 | #endif /* __GTK_ACTION_HELPER_H__ */ |
55 |