X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=notify_cbs.pxd;h=bdb8da75c5e38b9008c91fb9f082c117eaf6199c;hp=f23bb0e264faf50f69e78589c81f6c78d404d230;hb=7752e0f4a14a32ede02b8b86c83d9510338a59ed;hpb=e2eef524bf0c883406b15674eac0769c017d35c6 diff --git a/notify_cbs.pxd b/notify_cbs.pxd index f23bb0e..bdb8da7 100644 --- a/notify_cbs.pxd +++ b/notify_cbs.pxd @@ -31,7 +31,7 @@ cdef void *notify_message(notify.PurpleNotifyMsgType type, \ TODO """ debug.purple_debug_info("notify", "%s", "notify-message\n") - if notify_cbs.has_key("notif-message"): + if "notify-message" in notify_cbs: ( notify_cbs["notify-message"])("notify-message: TODO") cdef void *notify_email(connection.PurpleConnection *gc, \ @@ -41,7 +41,7 @@ cdef void *notify_email(connection.PurpleConnection *gc, \ TODO """ debug.purple_debug_info("notify", "%s", "notify-email\n") - if notify_cbs.has_key("notify-email"): + if "notify-email" in notify_cbs: ( notify_cbs["notify-email"])("notify-email: TODO") cdef void *notify_emails(connection.PurpleConnection *gc, size_t count, \ @@ -51,7 +51,7 @@ cdef void *notify_emails(connection.PurpleConnection *gc, size_t count, \ TODO """ debug.purple_debug_info("notify", "%s", "notify-emails\n") - if notify_cbs.has_key("notify-emails"): + if "notify-emails" in notify_cbs: ( notify_cbs["notify-emails"])("notify-emails: TODO") cdef void *notify_formatted(const_char *title, const_char *primary, \ @@ -60,7 +60,7 @@ cdef void *notify_formatted(const_char *title, const_char *primary, \ TODO """ debug.purple_debug_info("notify", "%s", "notify-formatted\n") - if notify_cbs.has_key("notify-formatted"): + if "notify-formatted" in notify_cbs: ( notify_cbs["notify-formatted"])("notify-formatted: TODO") cdef void *notify_searchresults(connection.PurpleConnection *gc, \ @@ -70,8 +70,9 @@ cdef void *notify_searchresults(connection.PurpleConnection *gc, \ TODO """ debug.purple_debug_info("notify", "%s", "notify-searchresults\n") - if notify_cbs.has_key("notify-searchresults"): - ( notify_cbs["notify-searchresults"])("notify-searchresults: TODO") + if "notify-searchresults" in notify_cbs: + ( notify_cbs["notify-searchresults"]) \ + ("notify-searchresults: TODO") cdef void notify_searchresults_new_rows(connection.PurpleConnection *gc, \ notify.PurpleNotifySearchResults *results, void *data): @@ -79,8 +80,9 @@ cdef void notify_searchresults_new_rows(connection.PurpleConnection *gc, \ TODO """ debug.purple_debug_info("notify", "%s", "notify-searchresults-new-rows\n") - if notify_cbs.has_key("notify-searchresults-new-rows"): - ( notify_cbs["notify-searchresults-new-rows"])("notify-searchresults-new-rows: TODO") + if "notify-searchresults-new-rows" in notify_cbs: + ( notify_cbs["notify-searchresults-new-rows"]) \ + ("notify-searchresults-new-rows: TODO") cdef void *notify_userinfo(connection.PurpleConnection *gc, const_char *who, \ notify.PurpleNotifyUserInfo *user_info): @@ -88,7 +90,7 @@ cdef void *notify_userinfo(connection.PurpleConnection *gc, const_char *who, \ TODO """ debug.purple_debug_info("notify", "%s", "notify-userinfo\n") - if notify_cbs.has_key("notify-userinfo"): + if "notify-userinfo" in notify_cbs: ( notify_cbs["notify-userinfo"])("notify-userinfo: TODO") cdef void *notify_uri(const_char *uri): @@ -96,7 +98,7 @@ cdef void *notify_uri(const_char *uri): TODO """ debug.purple_debug_info("notify", "%s", "notify-uri\n") - if notify_cbs.has_key("notify-uri"): + if "notify-uri" in notify_cbs: ( notify_cbs["notify-uri"])("notify-uri: TODO") cdef void close_notify(notify.PurpleNotifyType type, void *ui_handle): @@ -104,5 +106,5 @@ cdef void close_notify(notify.PurpleNotifyType type, void *ui_handle): TODO """ debug.purple_debug_info("notify", "%s", "close-notify\n") - if notify_cbs.has_key("close-notify"): + if "close-notify" in notify_cbs: ( notify_cbs["close-notify"])("close-notify: TODO")