* configure.ac: 0.12.0
[hildon] / hildon-widgets / hildon-find-toolbar.h
1 /*
2  * This file is part of hildon-libs
3  *
4  * Copyright (C) 2005 Nokia Corporation.
5  *
6  * Contact: Luc Pionchon <luc.pionchon@nokia.com>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation; either version 2.1 of
11  * the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  *
23  */
24
25 #ifndef __HILDON_FIND_TOOLBAR_H__
26 #define __HILDON_FIND_TOOLBAR_H__
27
28 #include <gtk/gtktoolbar.h>
29 #include <gtk/gtkliststore.h>
30
31 G_BEGIN_DECLS
32
33 #define HILDON_TYPE_FIND_TOOLBAR (hildon_find_toolbar_get_type())
34 #define HILDON_FIND_TOOLBAR(object) \
35   (G_TYPE_CHECK_INSTANCE_CAST((object), HILDON_TYPE_FIND_TOOLBAR, \
36   HildonFindToolbar))
37 #define HILDON_FIND_TOOLBARClass(klass) \
38   (G_TYPE_CHECK_CLASS_CAST((klass), HILDON_TYPE_FIND_TOOLBAR, \
39   HildonFindToolbarClass))
40 #define HILDON_IS_FIND_TOOLBAR(object) \
41   (G_TYPE_CHECK_INSTANCE_TYPE((object), HILDON_TYPE_FIND_TOOLBAR))
42 #define HILDON_IS_FIND_TOOLBAR_CLASS(klass) \
43   (G_TYPE_CHECK_CLASS_CAST((klass), HILDON_TYPE_FIND_TOOLBAR))
44 #define HILDON_FIND_TOOLBAR_GET_CLASS(object) \
45   (G_TYPE_INSTANCE_GET_CLASS((object), HILDON_TYPE_FIND_TOOLBAR, \
46   HildonFindToolbarClass))
47
48 typedef struct _HildonFindToolbar HildonFindToolbar;
49 typedef struct _HildonFindToolbarClass HildonFindToolbarClass;
50 typedef struct _HildonFindToolbarPrivate HildonFindToolbarPrivate;
51
52 struct _HildonFindToolbar
53 {
54   GtkToolbar parent;
55   
56   HildonFindToolbarPrivate *priv;
57 };
58
59 struct _HildonFindToolbarClass
60 {
61   GtkToolbarClass parent_class;
62
63   void          (*search)               (HildonFindToolbar *toolbar, gpointer data);
64   void          (*close)                (HildonFindToolbar *toolbar, gpointer data);
65   void          (*invalid_input)        (HildonFindToolbar *toolbar, gpointer data);
66   gboolean      (*history_append)       (HildonFindToolbar *tooblar, gpointer data);
67 };
68
69 GType           hildon_find_toolbar_get_type            (void);
70 GtkWidget*      hildon_find_toolbar_new                 (gchar *label);
71 GtkWidget*      hildon_find_toolbar_new_with_model      (gchar *label,
72                                                          GtkListStore*
73                                                          model,
74                                                          gint column);
75 void            hildon_find_toolbar_highlight_entry     (HildonFindToolbar *ftb,
76                                                          gboolean get_focus);
77
78 G_END_DECLS
79
80 #endif