]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-search-bar.h
factor out start_gnome_contacts()
[empathy.git] / libempathy-gtk / empathy-search-bar.h
1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3  * Copyright (C) 2010 Thomas Meire <blackskad@gmail.com>
4  *
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.
9  *
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.
14  *
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
18  */
19
20 #ifndef __EMPATHY_SEARCH_BAR_H__
21 #define __EMPATHY_SEARCH_BAR_H__
22
23 #include <glib.h>
24 #include <glib-object.h>
25
26 #include "empathy-chat-view.h"
27
28 G_BEGIN_DECLS
29
30 #define EMPATHY_TYPE_SEARCH_BAR (empathy_search_bar_get_type ())
31 #define EMPATHY_SEARCH_BAR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), \
32     EMPATHY_TYPE_SEARCH_BAR, EmpathySearchBar))
33 #define EMPATHY_SEARCH_BAR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), \
34     EMPATHY_TYPE_SEARCH_BAR, EmpathySearchBarClass))
35 #define EMPATHY_IS_SEARCH_BAR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), \
36     EMPATHY_TYPE_SEARCH_BAR))
37 #define EMPATHY_IS_SEARCH_BAR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), \
38     EMPATHY_TYPE_SEARCH_BAR))
39 #define EMPATHY_SEARCH_BAR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o),\
40     EMPATHY_TYPE_SEARCH_BAR, EmpathySearchBarClass))
41
42 typedef struct _EmpathySearchBar EmpathySearchBar;
43 typedef struct _EmpathySearchBarClass EmpathySearchBarClass;
44
45 struct _EmpathySearchBar
46 {
47   GtkBox parent;
48
49   /*<private>*/
50   gpointer priv;
51 };
52
53 struct _EmpathySearchBarClass
54 {
55   GtkBoxClass parent_class;
56 };
57
58 GType       empathy_search_bar_get_type (void) G_GNUC_CONST;
59 GtkWidget * empathy_search_bar_new      (EmpathyChatView  *view);
60 void        empathy_search_bar_show     (EmpathySearchBar *searchbar);
61 void        empathy_search_bar_hide     (EmpathySearchBar *searchbar);
62 void        empathy_search_bar_paste_clipboard (EmpathySearchBar *searchbar);
63
64 G_END_DECLS
65
66 #endif /* __EMPATHY_SEARCH_BAR_H__ */