blob: 2137592b53a6f2568348f40e11988051c4f0e4b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/* nautilus-search-popover.h
*
* Copyright (C) 2015 Georges Basile Stavracas Neto <georges.stavracas@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include <glib.h>
#include <gtk/gtk.h>
#include "nautilus-query.h"
G_BEGIN_DECLS
typedef enum {
NAUTILUS_SEARCH_FILTER_CONTENT, /* Full text or filename */
NAUTILUS_SEARCH_FILTER_DATE, /* When */
NAUTILUS_SEARCH_FILTER_LAST, /* Last modified or last used */
NAUTILUS_SEARCH_FILTER_TYPE /* What */
} NautilusSearchFilter;
#define NAUTILUS_TYPE_SEARCH_POPOVER (nautilus_search_popover_get_type())
G_DECLARE_FINAL_TYPE (NautilusSearchPopover, nautilus_search_popover, NAUTILUS, SEARCH_POPOVER, GtkPopover)
GtkWidget* nautilus_search_popover_new (void);
NautilusQuery* nautilus_search_popover_get_query (NautilusSearchPopover *popover);
void nautilus_search_popover_set_query (NautilusSearchPopover *popover,
NautilusQuery *query);
void nautilus_search_popover_reset_date_range (NautilusSearchPopover *popover);
void nautilus_search_popover_reset_mime_types (NautilusSearchPopover *popover);
gboolean nautilus_search_popover_get_fts_enabled (NautilusSearchPopover *popover);
void nautilus_search_popover_set_fts_sensitive (NautilusSearchPopover *popover,
gboolean sensitive);
G_END_DECLS
|