mirror of
https://github.com/lilydjwg/nvchecker
synced 2025-03-02 01:11:50 +00:00
update notify.py, fixing for x86_64
This commit is contained in:
parent
9de0eb289e
commit
011ae94c4d
@ -35,10 +35,9 @@ def set(summary=None, body=None, icon_str=None):
|
|||||||
|
|
||||||
libnotify.notify_notification_update(
|
libnotify.notify_notification_update(
|
||||||
notify_st.notify,
|
notify_st.notify,
|
||||||
c_char_p(notify_st.summary),
|
notify_st.summary,
|
||||||
c_char_p(notify_st.body),
|
notify_st.body,
|
||||||
c_char_p(notify_st.icon_str),
|
notify_st.icon_str,
|
||||||
c_void_p()
|
|
||||||
)
|
)
|
||||||
|
|
||||||
def show():
|
def show():
|
||||||
@ -73,9 +72,11 @@ def init():
|
|||||||
|
|
||||||
libnotify.notify_init('pynotify')
|
libnotify.notify_init('pynotify')
|
||||||
libnotify_inited = True
|
libnotify_inited = True
|
||||||
notify_st.notify = libnotify.notify_notification_new(
|
|
||||||
|
libnotify.notify_notification_new.restype = c_void_p
|
||||||
|
notify_st.notify = c_void_p(libnotify.notify_notification_new(
|
||||||
c_void_p(), c_void_p(), c_void_p(),
|
c_void_p(), c_void_p(), c_void_p(),
|
||||||
)
|
))
|
||||||
atexit.register(uninit)
|
atexit.register(uninit)
|
||||||
|
|
||||||
def uninit():
|
def uninit():
|
||||||
|
Loading…
Reference in New Issue
Block a user