Ardour  8.7-14-g57a6773833
gtkactivatable.h
Go to the documentation of this file.
1 /* GTK - The GIMP Toolkit
2  * Copyright (C) 2008 Tristan Van Berkom <tristan.van.berkom@gmail.com>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19 
20 #ifndef __GTK_ACTIVATABLE_H__
21 #define __GTK_ACTIVATABLE_H__
22 
23 #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
24 #error "Only <gtk/gtk.h> can be included directly."
25 #endif
26 
27 #include <gtk/gtkaction.h>
28 #include <gtk/gtktypeutils.h>
29 
30 G_BEGIN_DECLS
31 
32 #define GTK_TYPE_ACTIVATABLE (gtk_activatable_get_type ())
33 #define GTK_ACTIVATABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ACTIVATABLE, GtkActivatable))
34 #define GTK_ACTIVATABLE_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), GTK_TYPE_ACTIVATABLE, GtkActivatableIface))
35 #define GTK_IS_ACTIVATABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ACTIVATABLE))
36 #define GTK_ACTIVATABLE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_ACTIVATABLE, GtkActivatableIface))
37 
38 
39 typedef struct _GtkActivatable GtkActivatable; /* Dummy typedef */
41 
42 
60 {
61  GTypeInterface g_iface;
62 
63  /* virtual table */
64  void (* update) (GtkActivatable *activatable,
65  GtkAction *action,
66  const gchar *property_name);
67  void (* sync_action_properties) (GtkActivatable *activatable,
68  GtkAction *action);
69 };
70 
71 
72 GType gtk_activatable_get_type (void) G_GNUC_CONST;
73 
75  GtkAction *action);
76 
78  GtkAction *action);
80 
82  gboolean use_appearance);
84 
85 /* For use in activatable implementations */
87  GtkAction *action);
88 
89 G_END_DECLS
90 
91 #endif /* __GTK_ACTIVATABLE_H__ */
void gtk_activatable_sync_action_properties(GtkActivatable *activatable, GtkAction *action)
void gtk_activatable_do_set_related_action(GtkActivatable *activatable, GtkAction *action)
void gtk_activatable_set_use_action_appearance(GtkActivatable *activatable, gboolean use_appearance)
GType gtk_activatable_get_type(void) G_GNUC_CONST
gboolean gtk_activatable_get_use_action_appearance(GtkActivatable *activatable)
struct _GtkActivatable GtkActivatable
void gtk_activatable_set_related_action(GtkActivatable *activatable, GtkAction *action)
GtkAction * gtk_activatable_get_related_action(GtkActivatable *activatable)
void(* sync_action_properties)(GtkActivatable *activatable, GtkAction *action)
GTypeInterface g_iface
void(* update)(GtkActivatable *activatable, GtkAction *action, const gchar *property_name)