1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * Copyright (C) 2009-2014 Shaun McCance <shaunm@gnome.org>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of the
8 * License, or (at your option) 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 GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public
16 * License along with this program; if not, see <http://www.gnu.org/licenses/>.
18 * Author: Shaun McCance <shaunm@gnome.org>
21 #ifndef __YELP_SEARCH_ENTRY_H__
22 #define __YELP_SEARCH_ENTRY_H__
26 #include "yelp-bookmarks.h"
27 #include "yelp-view.h"
31 #define YELP_TYPE_SEARCH_ENTRY (yelp_search_entry_get_type ())
32 #define YELP_SEARCH_ENTRY(obj) \
33 (G_TYPE_CHECK_INSTANCE_CAST((obj), YELP_TYPE_SEARCH_ENTRY, \
35 #define YELP_SEARCH_ENTRY_CLASS(klass) \
36 (G_TYPE_CHECK_CLASS_CAST((klass), YELP_TYPE_SEARCH_ENTRY, \
37 YelpSearchEntryClass))
38 #define YELP_IS_SEARCH_ENTRY(obj) \
39 (G_TYPE_CHECK_INSTANCE_TYPE((obj), YELP_TYPE_SEARCH_ENTRY))
40 #define YELP_IS_SEARCH_ENTRY_CLASS(klass) \
41 (G_TYPE_CHECK_CLASS_TYPE((klass), YELP_TYPE_SEARCH_ENTRY))
42 #define YELP_SEARCH_ENTRY_GET_CLASS(obj) \
43 (G_TYPE_INSTANCE_GET_CLASS((obj), YELP_TYPE_SEARCH_ENTRY, \
44 YelpSearchEntryClass))
49 typedef struct _YelpSearchEntry YelpSearchEntry
;
50 typedef struct _YelpSearchEntryClass YelpSearchEntryClass
;
52 struct _YelpSearchEntry
54 GtkSearchEntry parent
;
57 struct _YelpSearchEntryClass
59 GtkSearchEntryClass parent
;
61 void (* search_activated
) (YelpSearchEntry
*entry
);
62 void (* bookmark_clicked
) (YelpSearchEntry
*entry
);
64 /* Padding for future expansion */
65 void (*_gtk_reserved0
) (void);
66 void (*_gtk_reserved1
) (void);
67 void (*_gtk_reserved2
) (void);
68 void (*_gtk_reserved3
) (void);
71 GType
yelp_search_entry_get_type (void);
72 GtkWidget
* yelp_search_entry_new (YelpView
*window
,
73 YelpBookmarks
*bookmarks
);
77 #endif /* __YELP_SEARCH_ENTRY_H__ */