From 42dc75ee809bb94403f1ccd055295c4a25e446ee Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Thu, 23 Sep 2021 18:34:08 -0700 Subject: [PATCH] Set width of notification --- src/notification_widget.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/notification_widget.rs b/src/notification_widget.rs index af8589f2..817b3b26 100644 --- a/src/notification_widget.rs +++ b/src/notification_widget.rs @@ -34,6 +34,8 @@ impl ObjectImpl for NotificationWidgetInner { fn constructed(&self, obj: &NotificationWidget) { let summary_label = cascade! { gtk4::Label::new(None); + ..set_width_chars(20); + ..set_max_width_chars(20); ..set_attributes(Some(&cascade! { pango::AttrList::new(); ..insert(pango::Attribute::new_weight(pango::Weight::Bold)); @@ -42,6 +44,8 @@ impl ObjectImpl for NotificationWidgetInner { let body_label = cascade! { gtk4::Label::new(None); + ..set_width_chars(20); + ..set_max_width_chars(20); }; let box_ = cascade! {