[gnome-logs] Olny output search result
- From: Jonathan Kang <jonathankang src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-logs] Olny output search result
- Date: Thu, 25 Feb 2016 10:25:30 +0000 (UTC)
commit 2fc19e0f0436788bdf9e81288bcafd8c91f6d039
Author: Jonathan Kang <jonathan121537 gmail com>
Date: Thu Feb 25 18:09:44 2016 +0800
Olny output search result
Only output search results that are shown in the list view. Search
results are entries that are visible and child visible.
https://bugzilla.gnome.org/show_bug.cgi?id=762621
src/gl-eventviewlist.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/gl-eventviewlist.c b/src/gl-eventviewlist.c
index 0925173..b33eb3a 100644
--- a/src/gl-eventviewlist.c
+++ b/src/gl-eventviewlist.c
@@ -95,6 +95,15 @@ gl_event_view_list_get_output_logs (GlEventViewList *view)
row = gtk_list_box_get_row_at_index (GTK_LIST_BOX (priv->entries_box),
index);
+ /* Only output search results.
+ * Search results are entries that are visible and child visible */
+ if (gtk_widget_get_mapped (GTK_WIDGET (row)) == FALSE
+ || gtk_widget_get_visible (GTK_WIDGET (row)) == FALSE)
+ {
+ index++;
+ continue;
+ }
+
comm = gl_event_view_row_get_command_line (GL_EVENT_VIEW_ROW (row));
message = gl_event_view_row_get_message (GL_EVENT_VIEW_ROW (row));
timestamp = gl_event_view_row_get_timestamp (GL_EVENT_VIEW_ROW (row));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]