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:
parent
aabbb412fe
commit
a91e2e7378
|
@ -48,13 +48,13 @@ function background:set_notification(notif)
|
||||||
if self._private.notification == notif then return end
|
if self._private.notification == notif then return end
|
||||||
|
|
||||||
if self._private.notification then
|
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.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.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.background_changed_callback)
|
||||||
self._private.notification:disconnect_signal("poperty::shape",
|
self._private.notification:disconnect_signal("property::shape",
|
||||||
self._private.background_changed_callback)
|
self._private.background_changed_callback)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -62,10 +62,10 @@ function background:set_notification(notif)
|
||||||
|
|
||||||
self._private.notification = notif
|
self._private.notification = notif
|
||||||
|
|
||||||
notif:connect_signal("poperty::bg" , self._private.background_changed_callback)
|
notif:connect_signal("property::bg" , self._private.background_changed_callback)
|
||||||
notif:connect_signal("poperty::border_width", self._private.background_changed_callback)
|
notif:connect_signal("property::border_width", self._private.background_changed_callback)
|
||||||
notif:connect_signal("poperty::border_color", self._private.background_changed_callback)
|
notif:connect_signal("property::border_color", self._private.background_changed_callback)
|
||||||
notif:connect_signal("poperty::shape" , self._private.background_changed_callback)
|
notif:connect_signal("property::shape" , self._private.background_changed_callback)
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Create a new naughty.container.background.
|
--- Create a new naughty.container.background.
|
||||||
|
|
|
@ -89,7 +89,7 @@ function icon:set_notification(notif)
|
||||||
|
|
||||||
self._private.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
|
end
|
||||||
|
|
||||||
local valid_strategies = {
|
local valid_strategies = {
|
||||||
|
|
|
@ -41,9 +41,9 @@ function message:set_notification(notif)
|
||||||
if self._private.notification == notif then return end
|
if self._private.notification == notif then return end
|
||||||
|
|
||||||
if self._private.notification then
|
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.message_changed_callback)
|
||||||
self._private.notification:disconnect_signal("poperty::fg",
|
self._private.notification:disconnect_signal("property::fg",
|
||||||
self._private.message_changed_callback)
|
self._private.message_changed_callback)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -51,8 +51,8 @@ function message:set_notification(notif)
|
||||||
|
|
||||||
self._private.notification = notif
|
self._private.notification = notif
|
||||||
|
|
||||||
notif:connect_signal("poperty::message", self._private.message_changed_callback)
|
notif:connect_signal("property::message", self._private.message_changed_callback)
|
||||||
notif:connect_signal("poperty::fg" , self._private.message_changed_callback)
|
notif:connect_signal("property::fg" , self._private.message_changed_callback)
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Create a new naughty.widget.message.
|
--- Create a new naughty.widget.message.
|
||||||
|
|
|
@ -41,9 +41,9 @@ function title:set_notification(notif)
|
||||||
if self._private.notification == notif then return end
|
if self._private.notification == notif then return end
|
||||||
|
|
||||||
if self._private.notification then
|
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.title_changed_callback)
|
||||||
self._private.notification:disconnect_signal("poperty::fg",
|
self._private.notification:disconnect_signal("property::fg",
|
||||||
self._private.title_changed_callback)
|
self._private.title_changed_callback)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -52,8 +52,8 @@ function title:set_notification(notif)
|
||||||
self._private.notification = notif
|
self._private.notification = notif
|
||||||
self._private.title_changed_callback()
|
self._private.title_changed_callback()
|
||||||
|
|
||||||
notif:connect_signal("poperty::title", self._private.title_changed_callback)
|
notif:connect_signal("property::title", self._private.title_changed_callback)
|
||||||
notif:connect_signal("poperty::fg" , self._private.title_changed_callback)
|
notif:connect_signal("property::fg" , self._private.title_changed_callback)
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Create a new naughty.widget.title.
|
--- Create a new naughty.widget.title.
|
||||||
|
|
Loading…
Reference in New Issue