[gnome-logs] Make category switching work
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-logs] Make category switching work
- Date: Mon, 30 Sep 2013 21:34:49 +0000 (UTC)
commit d87acf2ed7bcae0c58668e364a23092c113d4c67
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Sep 30 15:13:58 2013 -0400
Make category switching work
The listbox is not a direct child of the stack. We need
to take the scrolled window and a viewport to take into account.
https://bugzilla.gnome.org/show_bug.cgi?id=709123
src/gl-eventview.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/gl-eventview.c b/src/gl-eventview.c
index a3b69ff..1e01182 100644
--- a/src/gl-eventview.c
+++ b/src/gl-eventview.c
@@ -281,6 +281,8 @@ on_notify_filter (GlEventView *view,
{
GlEventViewPrivate *priv;
GtkStack *stack;
+ GtkWidget *scrolled;
+ GtkWidget *viewport;
priv = gl_event_view_get_instance_private (view);
stack = GTK_STACK (view);
@@ -321,7 +323,9 @@ on_notify_filter (GlEventView *view,
break;
}
- priv->active_listbox = GTK_LIST_BOX (gtk_stack_get_visible_child (stack));
+ scrolled = gtk_stack_get_visible_child (stack);
+ viewport = gtk_bin_get_child (GTK_BIN (scrolled));
+ priv->active_listbox = GTK_LIST_BOX (gtk_bin_get_child (GTK_BIN (viewport)));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]