Updated Spanish translation
[anjuta-git-plugin.git] / libegg / menu / egg-recent-action.h
blob076fcb7e3d8621d2257ebe057466b220c70e6901
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
3 /* egg-recent-action widget
5 * Copyright (C) Naba Kumar <naba@gnome.org>
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 * You should have received a copy of the GNU General Public
18 * License along with this program; if not, write to the
19 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA.
22 #ifndef EGG_RECENT_ACTION_H
23 #define EGG_RECENT_ACTION_H
25 #include <gtk/gtk.h>
26 #include <gtk/gtkaction.h>
27 #include <libegg/recent-files/egg-recent-model.h>
29 #define EGG_TYPE_RECENT_ACTION (egg_recent_action_get_type ())
30 #define EGG_RECENT_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_RECENT_ACTION, EggRecentAction))
31 #define EGG_RECENT_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_RECENT_ACTION, EggRecentActionClass))
32 #define EGG_IS_RECENT_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_RECENT_ACTION))
33 #define EGG_IS_RECENT_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), EGG_TYPE_RECENT_ACTION))
34 #define EGG_RECENT_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), EGG_TYPE_RECENT_ACTION, EggRecentActionClass))
36 typedef struct _EggRecentAction EggRecentAction;
37 typedef struct _EggRecentActionClass EggRecentActionClass;
38 typedef struct _EggRecentActionPriv EggRecentActionPriv;
40 struct _EggRecentAction
42 GtkAction parent;
43 EggRecentActionPriv *priv;
46 struct _EggRecentActionClass
48 GtkActionClass parent_class;
49 void (*selected) (EggRecentAction *recent_action, const gchar *uri);
52 GType egg_recent_action_get_type (void);
53 void egg_recent_action_add_model (EggRecentAction *action, EggRecentModel *model);
54 const gchar* egg_recent_action_get_selected_uri (EggRecentAction *action);
56 #endif