Initial import of ephy (rev# 7126) from svn
[ephy-soc.git] / lib / widgets / .svn / text-base / ephy-search-entry.h.svn-base
blob3ffd2f47ea6a9357fd8231d51ad94baff9ecbd04
1 /*
2  *  Copyright © 2002 Jorn Baayen <jorn@nl.linux.org>
3  *
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.
8  *
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.
13  *
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.
17  *
18  *  $Id$
19  */
21 #ifndef EPHY_SEARCH_ENTRY_H
22 #define EPHY_SEARCH_ENTRY_H
24 #include <gtk/gtkentry.h>
26 G_BEGIN_DECLS
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
41         GtkEntry parent;
43         /*< private >*/
44         EphySearchEntryPrivate *priv;
47 struct _EphySearchEntryClass
49         GtkEntryClass parent;
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);
60 G_END_DECLS
62 #endif /* __EPHY_SEARCH_ENTRY_H */