From d4ae1c7900a68afdf1097c304060e1cd88199bc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Thu, 3 Sep 2026 17:47:15 -0700 Subject: [PATCH] NotificationList: list is child of scrolled --- src/Indicator.vala | 9 +-------- src/Widgets/NotificationsList.vala | 9 ++++++++- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Indicator.vala b/src/Indicator.vala index 3c49edaa..1eeceddc 100644 --- a/src/Indicator.vala +++ b/src/Indicator.vala @@ -96,13 +96,6 @@ public class Notifications.Indicator : Wingpanel.Indicator { margin_bottom = 3 }; - var scrolled = new Gtk.ScrolledWindow () { - child = nlist, - hscrollbar_policy = NEVER, - max_content_height = 500, - propagate_natural_height = true - }; - var clear_all_btn_separator = new Gtk.Separator (Gtk.Orientation.HORIZONTAL) { margin_top = 3, margin_bottom = 3 @@ -121,7 +114,7 @@ public class Notifications.Indicator : Wingpanel.Indicator { }; main_box.append (not_disturb_switch); main_box.append (dnd_switch_separator); - main_box.append (scrolled); + main_box.append (nlist); main_box.append (clear_all_btn_separator); main_box.append (clear_all_btn); main_box.append (settings_btn); diff --git a/src/Widgets/NotificationsList.vala b/src/Widgets/NotificationsList.vala index 766a46c9..ce93be44 100644 --- a/src/Widgets/NotificationsList.vala +++ b/src/Widgets/NotificationsList.vala @@ -48,9 +48,16 @@ public class Notifications.NotificationsList : Granite.Bin { listbox.bind_model (sort_list_model, create_widget_func); listbox.set_header_func (header_func); + var scrolled = new Gtk.ScrolledWindow () { + child = listbox, + hscrollbar_policy = NEVER, + max_content_height = 500, + propagate_natural_height = true + }; + stack = new Gtk.Stack (); stack.add_named (placeholder, "placeholder"); - stack.add_named (listbox, "list"); + stack.add_named (scrolled, "list"); child = stack;