3.12.12
[nijm-empathy.git] / libempathy-gtk / empathy-search-bar.h
bloba710965b5df823cc368ff61e69218e4994f23109
1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * Copyright (C) 2010 Thomas Meire <blackskad@gmail.com>
5 * The code contained in this file is free software; you can redistribute
6 * it and/or modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either version
8 * 2.1 of the License, or (at your option) any later version.
10 * This file 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 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this code; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 #ifndef __EMPATHY_SEARCH_BAR_H__
21 #define __EMPATHY_SEARCH_BAR_H__
23 #include <gtk/gtk.h>
25 #include "empathy-theme-adium.h"
27 G_BEGIN_DECLS
29 #define EMPATHY_TYPE_SEARCH_BAR (empathy_search_bar_get_type ())
30 #define EMPATHY_SEARCH_BAR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), \
31 EMPATHY_TYPE_SEARCH_BAR, EmpathySearchBar))
32 #define EMPATHY_SEARCH_BAR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), \
33 EMPATHY_TYPE_SEARCH_BAR, EmpathySearchBarClass))
34 #define EMPATHY_IS_SEARCH_BAR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), \
35 EMPATHY_TYPE_SEARCH_BAR))
36 #define EMPATHY_IS_SEARCH_BAR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), \
37 EMPATHY_TYPE_SEARCH_BAR))
38 #define EMPATHY_SEARCH_BAR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o),\
39 EMPATHY_TYPE_SEARCH_BAR, EmpathySearchBarClass))
41 typedef struct _EmpathySearchBar EmpathySearchBar;
42 typedef struct _EmpathySearchBarClass EmpathySearchBarClass;
44 struct _EmpathySearchBar
46 GtkBox parent;
48 /*<private>*/
49 gpointer priv;
52 struct _EmpathySearchBarClass
54 GtkBoxClass parent_class;
57 GType empathy_search_bar_get_type (void) G_GNUC_CONST;
58 GtkWidget * empathy_search_bar_new (EmpathyThemeAdium *view);
59 void empathy_search_bar_show (EmpathySearchBar *searchbar);
60 void empathy_search_bar_hide (EmpathySearchBar *searchbar);
61 void empathy_search_bar_paste_clipboard (EmpathySearchBar *searchbar);
63 G_END_DECLS
65 #endif /* __EMPATHY_SEARCH_BAR_H__ */