2 * Copyright © 2004 Christian Persch
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2, or (at your option)
9 * This program 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
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 #include <glib-object.h>
26 #include "ephy-window.h"
30 #define EPHY_TYPE_LINK (ephy_link_get_type ())
31 #define EPHY_LINK(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EPHY_TYPE_LINK, EphyLink))
32 #define EPHY_LINK_IFACE(k) (G_TYPE_CHECK_CLASS_CAST((k), EPHY_TYPE_LINK, EphyLinkIface))
33 #define EPHY_IS_LINK(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EPHY_TYPE_LINK))
34 #define EPHY_IS_LINK_IFACE(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_LINK))
35 #define EPHY_LINK_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EPHY_TYPE_LINK, EphyLinkIface))
37 typedef struct _EphyLink EphyLink;
38 typedef struct _EphyLinkIface EphyLinkIface;
42 EPHY_LINK_NEW_WINDOW = 1 << 0,
43 EPHY_LINK_NEW_TAB = 1 << 1,
44 EPHY_LINK_JUMP_TO = 1 << 2,
45 EPHY_LINK_ALLOW_FIXUP = 1 << 3
50 GTypeInterface base_iface;
53 EphyTab * (* open_link) (EphyLink *link,
59 GType ephy_link_flags_get_type (void);
61 GType ephy_link_get_type (void);
63 EphyTab *ephy_link_open (EphyLink *link,
68 EphyLinkFlags ephy_link_flags_from_current_event (void);
72 #endif /* EPHY_LINK_H */