Ardour  9.0-pre0-582-g084a23a80d
gtkrecentaction.h
Go to the documentation of this file.
1 /* GTK - The GIMP Toolkit
2  * Recent chooser action for GtkUIManager
3  *
4  * Copyright (C) 2007, Emmanuele Bassi
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21 
22 #ifndef __GTK_RECENT_ACTION_H__
23 #define __GTK_RECENT_ACTION_H__
24 
25 #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
26 #error "Only <gtk/gtk.h> can be included directly."
27 #endif
28 
29 #include <gtk/gtkaction.h>
30 #include <gtk/gtkrecentmanager.h>
31 
32 G_BEGIN_DECLS
33 
34 #define GTK_TYPE_RECENT_ACTION (gtk_recent_action_get_type ())
35 #define GTK_RECENT_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RECENT_ACTION, GtkRecentAction))
36 #define GTK_IS_RECENT_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RECENT_ACTION))
37 #define GTK_RECENT_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RECENT_ACTION, GtkRecentActionClass))
38 #define GTK_IS_RECENT_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RECENT_ACTION))
39 #define GTK_RECENT_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RECENT_ACTION, GtkRecentActionClass))
40 
41 typedef struct _GtkRecentAction GtkRecentAction;
42 typedef struct _GtkRecentActionPrivate GtkRecentActionPrivate;
44 
46 {
48 
49  /*< private >*/
51 };
52 
54 {
56 };
57 
58 GType gtk_recent_action_get_type (void) G_GNUC_CONST;
60  const gchar *label,
61  const gchar *tooltip,
62  const gchar *stock_id);
64  const gchar *label,
65  const gchar *tooltip,
66  const gchar *stock_id,
67  GtkRecentManager *manager);
70  gboolean show_numbers);
71 
72 G_END_DECLS
73 
74 #endif /* __GTK_RECENT_ACTION_H__ */
GtkImageIconNameData name
Definition: gtkimage.h:6
gboolean gtk_recent_action_get_show_numbers(GtkRecentAction *action)
GType gtk_recent_action_get_type(void) G_GNUC_CONST
GtkAction * gtk_recent_action_new(const gchar *name, const gchar *label, const gchar *tooltip, const gchar *stock_id)
struct _GtkRecentActionPrivate GtkRecentActionPrivate
void gtk_recent_action_set_show_numbers(GtkRecentAction *action, gboolean show_numbers)
GtkAction * gtk_recent_action_new_for_manager(const gchar *name, const gchar *label, const gchar *tooltip, const gchar *stock_id, GtkRecentManager *manager)
GtkActionClass parent_class
GtkAction parent_instance
GtkRecentActionPrivate * GSEAL(priv)