diff options
author | Pranav Ganorkar <pranavg189@gmail.com> | 2016-07-24 22:14:54 +0530 |
---|---|---|
committer | Jonathan Kang <jonathan121537@gmail.com> | 2016-10-20 10:58:39 +0800 |
commit | ec6b654fea3466707efa421a0894ffc9834e3b19 (patch) | |
tree | da0404b5401885f386043d9bc995686382f1c281 /src/gl-searchpopover.h | |
parent | 3f028d5430e06253fd66c4294a9652d02eb31a21 (diff) | |
download | gnome-logs-ec6b654fea3466707efa421a0894ffc9834e3b19.tar.gz |
Add journal timestamp range filters
The journal timestamp range filters in search popover can be
used to set the timestamp range of journal model.The default
journal timestamp range is the currently selected boot from
the boot selection menu in toolbar.
The query object was modified to include two
new parameters for storing the start and end timestamps
of the journal.
The gl_journal_set_matches() function was modified to
remove setting the boot match if no boot match is specified.
The search popover range button label is made consistent when
user selects boot through the toolbar boot selection menu.
https://bugzilla.gnome.org/show_bug.cgi?id=767996
Diffstat (limited to 'src/gl-searchpopover.h')
-rw-r--r-- | src/gl-searchpopover.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gl-searchpopover.h b/src/gl-searchpopover.h index d4a9cab..cd44cb4 100644 --- a/src/gl-searchpopover.h +++ b/src/gl-searchpopover.h @@ -39,12 +39,24 @@ typedef enum GL_SEARCH_POPOVER_JOURNAL_FIELD_FILTER_EXECUTABLE_PATH } GlSearchPopoverJournalFieldFilter; +typedef enum +{ + GL_SEARCH_POPOVER_JOURNAL_TIMESTAMP_RANGE_CURRENT_BOOT, + GL_SEARCH_POPOVER_JOURNAL_TIMESTAMP_RANGE_PREVIOUS_BOOT, + GL_SEARCH_POPOVER_JOURNAL_TIMESTAMP_RANGE_TODAY, + GL_SEARCH_POPOVER_JOURNAL_TIMESTAMP_RANGE_YESTERDAY, + GL_SEARCH_POPOVER_JOURNAL_TIMESTAMP_RANGE_LAST_3_DAYS, + GL_SEARCH_POPOVER_JOURNAL_TIMESTAMP_RANGE_ENTIRE_JOURNAL +} GlSearchPopoverJournalTimestampRange; + #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); GlQuerySearchType gl_search_popover_get_query_search_type (GlSearchPopover *popover); +GlSearchPopoverJournalTimestampRange gl_search_popover_get_journal_timestamp_range (GlSearchPopover *popover); +void gl_search_popover_set_journal_timestamp_range_current_boot (GlSearchPopover *popover); G_END_DECLS |