2007-05-02 22:51:43 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2005 Novell, Inc.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2012-02-27 13:01:10 +00:00
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2007-05-02 22:51:43 +00:00
|
|
|
*
|
|
|
|
* Author: Anders Carlsson <andersca@imendio.com>
|
|
|
|
*
|
|
|
|
* Based on nautilus-query.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GTK_QUERY_H__
|
|
|
|
#define __GTK_QUERY_H__
|
|
|
|
|
2015-07-24 19:29:51 +00:00
|
|
|
#include <gio/gio.h>
|
2007-05-02 22:51:43 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2015-05-16 04:45:25 +00:00
|
|
|
#define GTK_TYPE_QUERY (gtk_query_get_type ())
|
|
|
|
#define GTK_QUERY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_QUERY, GtkQuery))
|
|
|
|
#define GTK_QUERY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_QUERY, GtkQueryClass))
|
|
|
|
#define GTK_IS_QUERY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_QUERY))
|
|
|
|
#define GTK_IS_QUERY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_QUERY))
|
2007-05-02 22:51:43 +00:00
|
|
|
#define GTK_QUERY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_QUERY, GtkQueryClass))
|
|
|
|
|
|
|
|
typedef struct _GtkQuery GtkQuery;
|
|
|
|
typedef struct _GtkQueryClass GtkQueryClass;
|
|
|
|
typedef struct _GtkQueryPrivate GtkQueryPrivate;
|
|
|
|
|
2015-05-16 04:45:25 +00:00
|
|
|
struct _GtkQuery
|
2007-05-02 22:51:43 +00:00
|
|
|
{
|
|
|
|
GObject parent;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _GtkQueryClass
|
|
|
|
{
|
|
|
|
GObjectClass parent_class;
|
|
|
|
};
|
|
|
|
|
2015-07-22 00:39:29 +00:00
|
|
|
GType gtk_query_get_type (void);
|
2007-05-02 22:51:43 +00:00
|
|
|
|
2015-07-22 00:39:29 +00:00
|
|
|
GtkQuery *gtk_query_new (void);
|
2007-05-02 22:51:43 +00:00
|
|
|
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *gtk_query_get_text (GtkQuery *query);
|
2015-07-22 00:39:29 +00:00
|
|
|
void gtk_query_set_text (GtkQuery *query,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *text);
|
2007-05-02 22:51:43 +00:00
|
|
|
|
2015-07-24 19:29:51 +00:00
|
|
|
GFile *gtk_query_get_location (GtkQuery *query);
|
2015-07-22 00:39:29 +00:00
|
|
|
void gtk_query_set_location (GtkQuery *query,
|
2015-07-24 19:29:51 +00:00
|
|
|
GFile *file);
|
2007-05-02 22:51:43 +00:00
|
|
|
|
2015-07-22 00:39:29 +00:00
|
|
|
gboolean gtk_query_matches_string (GtkQuery *query,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *string);
|
2015-05-16 04:37:07 +00:00
|
|
|
|
2007-05-02 22:51:43 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GTK_QUERY_H__ */
|