1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
4 * Copyright (C) Johannes Schmid 2007 <jhs@gnome.org>
6 * anjuta is free software.
8 * You may redistribute it and/or modify it under the terms of the
9 * GNU General Public License, as published by the Free Software
10 * Foundation; either version 2 of the License, or (at your option)
13 * anjuta is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 * See the GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with anjuta. If not, write to:
20 * The Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor
22 * Boston, MA 02110-1301, USA.
25 #ifndef _SEARCH_BOX_H_
26 #define _SEARCH_BOX_H_
28 #include <gtk/gtkbox.h>
29 #include "anjuta-docman.h"
33 #define SEARCH_TYPE_BOX (search_box_get_type ())
34 #define SEARCH_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCH_TYPE_BOX, SearchBox))
35 #define SEARCH_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCH_TYPE_BOX, SearchBoxClass))
36 #define SEARCH_IS_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCH_TYPE_BOX))
37 #define SEARCH_IS_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCH_TYPE_BOX))
38 #define SEARCH_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCH_TYPE_BOX, SearchBoxClass))
40 typedef struct _SearchBoxClass SearchBoxClass
;
41 typedef struct _SearchBox SearchBox
;
43 struct _SearchBoxClass
45 GtkHBoxClass parent_class
;
50 GtkHBox parent_instance
;
56 GType
search_box_get_type (void);
57 GtkWidget
* search_box_new (DocmanPlugin
* plugin
);
59 void search_box_grab_search_focus (SearchBox
* search_box
);
60 void search_box_grab_line_focus (SearchBox
* search_box
);
64 #endif /* _SEARCH_BOX_H_ */