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, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef __GTK_RECENT_ACTION_H__
21#define __GTK_RECENT_ACTION_H__
22
23#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
24#error "Only <gtk/gtk.h> can be included directly."
25#endif
26
27#include <gtk/deprecated/gtkaction.h>
28#include <gtk/gtkrecentmanager.h>
29
30G_BEGIN_DECLS
31
32#define GTK_TYPE_RECENT_ACTION (gtk_recent_action_get_type ())
33#define GTK_RECENT_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RECENT_ACTION, GtkRecentAction))
34#define GTK_IS_RECENT_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RECENT_ACTION))
35#define GTK_RECENT_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RECENT_ACTION, GtkRecentActionClass))
36#define GTK_IS_RECENT_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RECENT_ACTION))
37#define GTK_RECENT_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RECENT_ACTION, GtkRecentActionClass))
38
39typedef struct _GtkRecentAction GtkRecentAction;
40typedef struct _GtkRecentActionPrivate GtkRecentActionPrivate;
41typedef struct _GtkRecentActionClass GtkRecentActionClass;
42
43struct _GtkRecentAction
44{
45 GtkAction parent_instance;
46
47 /*< private >*/
48 GtkRecentActionPrivate *priv;
49};
50
51struct _GtkRecentActionClass
52{
53 GtkActionClass parent_class;
54
55 /* Padding for future expansion */
56 void (*_gtk_reserved1) (void);
57 void (*_gtk_reserved2) (void);
58 void (*_gtk_reserved3) (void);
59 void (*_gtk_reserved4) (void);
60};
61
62GDK_DEPRECATED_IN_3_10
63GType gtk_recent_action_get_type (void) G_GNUC_CONST;
64GDK_DEPRECATED_IN_3_10
65GtkAction *gtk_recent_action_new (const gchar *name,
66 const gchar *label,
67 const gchar *tooltip,
68 const gchar *stock_id);
69GDK_DEPRECATED_IN_3_10
70GtkAction *gtk_recent_action_new_for_manager (const gchar *name,
71 const gchar *label,
72 const gchar *tooltip,
73 const gchar *stock_id,
74 GtkRecentManager *manager);
75GDK_DEPRECATED_IN_3_10
76gboolean gtk_recent_action_get_show_numbers (GtkRecentAction *action);
77GDK_DEPRECATED_IN_3_10
78void gtk_recent_action_set_show_numbers (GtkRecentAction *action,
79 gboolean show_numbers);
80
81G_END_DECLS
82
83#endif /* __GTK_RECENT_ACTION_H__ */
84

source code of include/gtk-3.0/gtk/deprecated/gtkrecentaction.h