diff options
author | Pranav Ganorkar <pranavg189@gmail.com> | 2016-07-22 18:55:37 +0530 |
---|---|---|
committer | Jonathan Kang <jonathan121537@gmail.com> | 2016-10-20 10:58:39 +0800 |
commit | b58ad1fcc1973da8869b39e28b65c751619d3036 (patch) | |
tree | 584e331e347bf055ac6be713e519c95b3f23b3d5 /src/gl-searchpopover.h | |
parent | 191a1df44eb813170b15a862e59bfbecb4e66b19 (diff) | |
download | gnome-logs-b58ad1fcc1973da8869b39e28b65c751619d3036.tar.gz |
Add search popover with journal field filtering
The search popover can be selected from the
drop down menu besides the search bar. Individual
journal field or all available journal fields can
be selected from the search popover.The default
journal field filter is "All Available fields".
The search popover is designed to look similar to the
Nautilus search popover.
If Nautilus implementation of search popover changes in
future, gnome-logs implementation of search popover should
be kept in sync with it.
https://bugzilla.gnome.org/show_bug.cgi?id=767996
Diffstat (limited to 'src/gl-searchpopover.h')
-rw-r--r-- | src/gl-searchpopover.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/gl-searchpopover.h b/src/gl-searchpopover.h new file mode 100644 index 0000000..faf0a1f --- /dev/null +++ b/src/gl-searchpopover.h @@ -0,0 +1,49 @@ +/* + * GNOME Logs - View and search logs + * Copyright (C) 2016 Pranav Ganorkar <pranavg189@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/>. + */ + +#ifndef GL_SEARCH_POPOVER_H_ +#define GL_SEARCH_POPOVER_H_ + +#include <gtk/gtk.h> + +G_BEGIN_DECLS + +/* Rows in parameter treeview */ +typedef enum +{ + GL_SEARCH_POPOVER_JOURNAL_FIELD_FILTER_ALL_AVAILABLE_FIELDS, + GL_SEARCH_POPOVER_JOURNAL_FIELD_FILTER_PID, + GL_SEARCH_POPOVER_JOURNAL_FIELD_FILTER_UID, + GL_SEARCH_POPOVER_JOURNAL_FIELD_FILTER_GID, + GL_SEARCH_POPOVER_JOURNAL_FIELD_FILTER_MESSAGE, + GL_SEARCH_POPOVER_JOURNAL_FIELD_FILTER_PROCESS_NAME, + GL_SEARCH_POPOVER_JOURNAL_FIELD_FILTER_SYSTEMD_UNIT, + GL_SEARCH_POPOVER_JOURNAL_FIELD_FILTER_KERNEL_DEVICE, + GL_SEARCH_POPOVER_JOURNAL_FIELD_FILTER_AUDIT_SESSION, + GL_SEARCH_POPOVER_JOURNAL_FIELD_FILTER_EXECUTABLE_PATH +} GlSearchPopoverJournalFieldFilter; + +#define GL_TYPE_SEARCH_POPOVER (gl_search_popover_get_type ()) +G_DECLARE_FINAL_TYPE (GlSearchPopover, gl_search_popover, GL, SEARCH_POPOVER, GtkPopover) + +GtkWidget * gl_search_popover_new (void); +GlSearchPopoverJournalFieldFilter gl_search_popover_get_journal_search_field (GlSearchPopover *popover); + +G_END_DECLS + +#endif /* GL_SEARCH_POPOVER_H_ */ |