From a91e2e7378d7d4bcb8b174f49d6432ed37686c4d Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Tue, 9 Jul 2019 01:23:11 -0400 Subject: [PATCH] notification: Fix typos in signal names. Updating notifications would not work because, among other things, the signals names had a typo (all of them...). --- lib/naughty/container/background.lua | 16 ++++++++-------- lib/naughty/widget/icon.lua | 2 +- lib/naughty/widget/message.lua | 8 ++++---- lib/naughty/widget/title.lua | 8 ++++---- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/lib/naughty/container/background.lua b/lib/naughty/container/background.lua index 5bc97fa06..b6896b307 100644 --- a/lib/naughty/container/background.lua +++ b/lib/naughty/container/background.lua @@ -48,13 +48,13 @@ function background:set_notification(notif) if self._private.notification == notif then return end if self._private.notification then - self._private.notification:disconnect_signal("poperty::bg", + self._private.notification:disconnect_signal("property::bg", self._private.background_changed_callback) - self._private.notification:disconnect_signal("poperty::border_width", + self._private.notification:disconnect_signal("property::border_width", self._private.background_changed_callback) - self._private.notification:disconnect_signal("poperty::border_color", + self._private.notification:disconnect_signal("property::border_color", self._private.background_changed_callback) - self._private.notification:disconnect_signal("poperty::shape", + self._private.notification:disconnect_signal("property::shape", self._private.background_changed_callback) end @@ -62,10 +62,10 @@ function background:set_notification(notif) self._private.notification = notif - notif:connect_signal("poperty::bg" , self._private.background_changed_callback) - notif:connect_signal("poperty::border_width", self._private.background_changed_callback) - notif:connect_signal("poperty::border_color", self._private.background_changed_callback) - notif:connect_signal("poperty::shape" , self._private.background_changed_callback) + notif:connect_signal("property::bg" , self._private.background_changed_callback) + notif:connect_signal("property::border_width", self._private.background_changed_callback) + notif:connect_signal("property::border_color", self._private.background_changed_callback) + notif:connect_signal("property::shape" , self._private.background_changed_callback) end --- Create a new naughty.container.background. diff --git a/lib/naughty/widget/icon.lua b/lib/naughty/widget/icon.lua index cac135645..ccb60b6b1 100644 --- a/lib/naughty/widget/icon.lua +++ b/lib/naughty/widget/icon.lua @@ -89,7 +89,7 @@ function icon:set_notification(notif) self._private.notification = notif - notif:connect_signal("poperty::icon", self._private.icon_changed_callback) + notif:connect_signal("property::icon", self._private.icon_changed_callback) end local valid_strategies = { diff --git a/lib/naughty/widget/message.lua b/lib/naughty/widget/message.lua index 8a151b87c..350afcc95 100644 --- a/lib/naughty/widget/message.lua +++ b/lib/naughty/widget/message.lua @@ -41,9 +41,9 @@ function message:set_notification(notif) if self._private.notification == notif then return end if self._private.notification then - self._private.notification:disconnect_signal("poperty::message", + self._private.notification:disconnect_signal("property::message", self._private.message_changed_callback) - self._private.notification:disconnect_signal("poperty::fg", + self._private.notification:disconnect_signal("property::fg", self._private.message_changed_callback) end @@ -51,8 +51,8 @@ function message:set_notification(notif) self._private.notification = notif - notif:connect_signal("poperty::message", self._private.message_changed_callback) - notif:connect_signal("poperty::fg" , self._private.message_changed_callback) + notif:connect_signal("property::message", self._private.message_changed_callback) + notif:connect_signal("property::fg" , self._private.message_changed_callback) end --- Create a new naughty.widget.message. diff --git a/lib/naughty/widget/title.lua b/lib/naughty/widget/title.lua index 92bf4763f..78a804baa 100644 --- a/lib/naughty/widget/title.lua +++ b/lib/naughty/widget/title.lua @@ -41,9 +41,9 @@ function title:set_notification(notif) if self._private.notification == notif then return end if self._private.notification then - self._private.notification:disconnect_signal("poperty::message", + self._private.notification:disconnect_signal("property::message", self._private.title_changed_callback) - self._private.notification:disconnect_signal("poperty::fg", + self._private.notification:disconnect_signal("property::fg", self._private.title_changed_callback) end @@ -52,8 +52,8 @@ function title:set_notification(notif) self._private.notification = notif self._private.title_changed_callback() - notif:connect_signal("poperty::title", self._private.title_changed_callback) - notif:connect_signal("poperty::fg" , self._private.title_changed_callback) + notif:connect_signal("property::title", self._private.title_changed_callback) + notif:connect_signal("property::fg" , self._private.title_changed_callback) end --- Create a new naughty.widget.title.