Initial import of ephy (rev# 7126) from svn
[ephy-soc.git] / src / bookmarks / ephy-bookmark-action.h
blobd3079d2ab0fbf564a9e490cf8205603fad0e3b30
1 /*
2 * Copyright © 2003, 2004 Marco Pesenti Gritti
3 * Copyright © 2003, 2004 Christian Persch
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
8 * any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 * $Id: ephy-bookmark-action.h 6952 2007-03-11 19:42:02Z chpe $
22 #ifndef EPHY_BOOKMARK_ACTION_H
23 #define EPHY_BOOKMARK_ACTION_H
25 #include "ephy-link.h"
26 #include "ephy-link-action.h"
27 #include "ephy-node.h"
29 #include <gtk/gtkactiongroup.h>
31 G_BEGIN_DECLS
33 #define EPHY_TYPE_BOOKMARK_ACTION (ephy_bookmark_action_get_type ())
34 #define EPHY_BOOKMARK_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EPHY_TYPE_BOOKMARK_ACTION, EphyBookmarkAction))
35 #define EPHY_BOOKMARK_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EPHY_TYPE_BOOKMARK_ACTION, EphyBookmarkActionClass))
36 #define EPHY_IS_BOOKMARK_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EPHY_TYPE_BOOKMARK_ACTION))
37 #define EPHY_IS_BOOKMARK_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), EPHY_TYPE_BOOKMARK_ACTION))
38 #define EPHY_BOOKMARK_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), EPHY_TYPE_BOOKMARK_ACTION, EphyBookmarkActionClass))
40 typedef struct _EphyBookmarkAction EphyBookmarkAction;
41 typedef struct _EphyBookmarkActionPrivate EphyBookmarkActionPrivate;
42 typedef struct _EphyBookmarkActionClass EphyBookmarkActionClass;
44 struct _EphyBookmarkAction
46 EphyLinkAction parent_instance;
48 /*< private >*/
49 EphyBookmarkActionPrivate *priv;
52 struct _EphyBookmarkActionClass
54 EphyLinkActionClass parent_class;
58 GType ephy_bookmark_action_get_type (void);
60 GtkAction *ephy_bookmark_action_new (EphyNode *node,
61 const char *name);
63 void ephy_bookmark_action_set_bookmark (EphyBookmarkAction *action,
64 EphyNode *node);
66 EphyNode *ephy_bookmark_action_get_bookmark (EphyBookmarkAction *action);
68 void ephy_bookmark_action_updated (EphyBookmarkAction *action);
70 void ephy_bookmark_action_activate (EphyBookmarkAction *action,
71 GtkWidget *widget,
72 EphyLinkFlags flags);
74 G_END_DECLS
76 #endif