notification: Fix typos in signal names.

Updating notifications would not work because, among other things,
the signals names had a typo (all of them...).
This commit is contained in:
Emmanuel Lepage Vallee 2019-07-09 01:23:11 -04:00
parent aabbb412fe
commit a91e2e7378
4 changed files with 17 additions and 17 deletions

View File

@ -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.

View File

@ -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 = {

View File

@ -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.

View File

@ -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.