1
/* bjb-search-toolbar.h
2
* Copyright © 2012, 2013 Pierre-Yves LUYTEN <py@luyten.fr>
4
* bijiben is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License as published by the
6
* Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
9
* bijiben is distributed in the hope that it will be useful, but
10
* WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
* See the GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License along
15
* with this program. If not, see <http://www.gnu.org/licenses/>.
18
#ifndef BJB_SEARCH_TOOLBAR_H
19
#define BJB_SEARCH_TOOLBAR_H
21
#include <libgd/gd-revealer.h>
25
#define BJB_TYPE_SEARCH_TOOLBAR (bjb_search_toolbar_get_type ())
27
#define BJB_SEARCH_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BJB_TYPE_SEARCH_TOOLBAR, BjbSearchToolbar))
29
#define BJB_SEARCH_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BJB_TYPE_SEARCH_TOOLBAR, BjbSearchToolbarClass))
31
#define BJB_IS_SEARCH_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BJB_TYPE_SEARCH_TOOLBAR))
33
#define BJB_IS_SEARCH_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BJB_TYPE_SEARCH_TOOLBAR))
35
#define BJB_SEARCH_TOOLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BJB_TYPE_SEARCH_TOOLBAR, BjbSearchToolbarClass))
37
typedef struct _BjbSearchToolbar BjbSearchToolbar;
38
typedef struct _BjbSearchToolbarClass BjbSearchToolbarClass;
39
typedef struct _BjbSearchToolbarPrivate BjbSearchToolbarPrivate;
41
struct _BjbSearchToolbar
43
GtkToolbar parent_instance;
44
BjbSearchToolbarPrivate *priv;
47
struct _BjbSearchToolbarClass
49
GtkToolbarClass parent_class;
52
GType bjb_search_toolbar_get_type (void) G_GNUC_CONST;
54
BjbSearchToolbar * bjb_search_toolbar_new (GtkWidget *window, BjbController *controller);
56
GdRevealer * bjb_search_toolbar_get_revealer (BjbSearchToolbar *self);
58
void bjb_search_toolbar_disconnect (BjbSearchToolbar *self);
60
void bjb_search_toolbar_connect (BjbSearchToolbar *self);
64
#endif /* BJB_SEARCH_TOOLBAR_H */