2 * Copyright © 2002 Jorn Baayen <jorn@nl.linux.org>
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 of the License, or
7 * (at your option) any later version.
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.
21 #ifndef EPHY_SEARCH_ENTRY_H
22 #define EPHY_SEARCH_ENTRY_H
24 #include <gtk/gtkentry.h>
28 #define EPHY_TYPE_SEARCH_ENTRY (ephy_search_entry_get_type ())
29 #define EPHY_SEARCH_ENTRY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EPHY_TYPE_SEARCH_ENTRY, EphySearchEntry))
30 #define EPHY_SEARCH_ENTRY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EPHY_TYPE_SEARCH_ENTRY, EphySearchEntryClass))
31 #define EPHY_IS_SEARCH_ENTRY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EPHY_TYPE_SEARCH_ENTRY))
32 #define EPHY_IS_SEARCH_ENTRY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_SEARCH_ENTRY))
33 #define EPHY_SEARCH_ENTRY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EPHY_TYPE_SEARCH_ENTRY, EphySearchEntryClass))
35 typedef struct _EphySearchEntry EphySearchEntry;
36 typedef struct _EphySearchEntryPrivate EphySearchEntryPrivate;
37 typedef struct _EphySearchEntryClass EphySearchEntryClass;
39 struct _EphySearchEntry
44 EphySearchEntryPrivate *priv;
47 struct _EphySearchEntryClass
51 void (*search) (EphySearchEntry *view, const char *text);
54 GType ephy_search_entry_get_type (void);
56 GtkWidget *ephy_search_entry_new (void);
58 void ephy_search_entry_clear (EphySearchEntry *entry);
62 #endif /* __EPHY_SEARCH_ENTRY_H */