1/* gtkplacesview.h
2 *
3 * Copyright (C) 2015 Georges Basile Stavracas Neto <georges.stavracas@gmail.com>
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published
7 * by the Free Software Foundation, either version 2.1 of the License, or
8 * (at your option) any later version.
9 *
10 * This program 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
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef GTK_PLACES_VIEW_H
20#define GTK_PLACES_VIEW_H
21
22#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
23#error "Only <gtk/gtk.h> can be included directly."
24#endif
25
26#include <gtk/gtkbox.h>
27#include <gtk/gtkplacessidebarprivate.h>
28
29G_BEGIN_DECLS
30
31#define GTK_TYPE_PLACES_VIEW (gtk_places_view_get_type ())
32#define GTK_PLACES_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PLACES_VIEW, GtkPlacesView))
33#define GTK_PLACES_VIEW_CLASS(klass)(G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PLACES_VIEW, GtkPlacesViewClass))
34#define GTK_IS_PLACES_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PLACES_VIEW))
35#define GTK_IS_PLACES_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PLACES_VIEW))
36#define GTK_PLACES_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PLACES_VIEW, GtkPlacesViewClass))
37
38typedef struct _GtkPlacesView GtkPlacesView;
39typedef struct _GtkPlacesViewClass GtkPlacesViewClass;
40
41GType gtk_places_view_get_type (void) G_GNUC_CONST;
42
43GtkPlacesOpenFlags gtk_places_view_get_open_flags (GtkPlacesView *view);
44void gtk_places_view_set_open_flags (GtkPlacesView *view,
45 GtkPlacesOpenFlags flags);
46
47const char * gtk_places_view_get_search_query (GtkPlacesView *view);
48void gtk_places_view_set_search_query (GtkPlacesView *view,
49 const char *query_text);
50
51gboolean gtk_places_view_get_loading (GtkPlacesView *view);
52
53GtkWidget * gtk_places_view_new (void);
54
55G_END_DECLS
56
57#endif /* GTK_PLACES_VIEW_H */
58

source code of gtk/gtk/gtkplacesviewprivate.h