[gnome-logs] Switch back to the event view before filter change



commit e4d6769f240b1ce4b0e02b95857cb2b2711d3574
Author: Daiki Ueno <dueno src gnome org>
Date:   Wed Jun 18 13:03:30 2014 +0900

    Switch back to the event view before filter change
    
    https://bugzilla.gnome.org/show_bug.cgi?id=731812

 src/gl-window.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gl-window.c b/src/gl-window.c
index 82ee364..ce268c3 100644
--- a/src/gl-window.c
+++ b/src/gl-window.c
@@ -75,6 +75,9 @@ on_category (GSimpleAction *action,
     eclass = g_type_class_ref (GL_TYPE_EVENT_VIEW_FILTER);
     evalue = g_enum_get_value_by_nick (eclass, category);
 
+    /* First switch the event view back to list mode if the category
+       tab is clicked. */
+    gl_event_view_set_mode (events, GL_EVENT_VIEW_MODE_LIST);
     gl_event_view_set_filter (events, evalue->value);
 
     g_simple_action_set_state (action, variant);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]