Changes between Version 9 and Version 10 of DbusHowto


Ignore:
Timestamp:
04/09/16 02:58:30 (20 months ago)
Author:
lew21
Comment:

Update to pydbus 0.5.

Legend:

Unmodified
Added
Removed
Modified
  • DbusHowto

    v9 v10  
    151151{{{
    152152#!python
    153 for conv in purple.PurpleGetIms()[0]:
    154     purple.PurpleConvImSend(purple.PurpleConvIm(conv)[0], "Ignore.")
     153for conv in purple.PurpleGetIms():
     154    purple.PurpleConvImSend(purple.PurpleConvIm(conv), "Ignore.")
    155155}}}
    156156
     
    160160def set_message(message):
    161161    # Get current status type (Available/Away/etc.)
    162     current = purple.PurpleSavedstatusGetType(purple.PurpleSavedstatusGetCurrent()[0])[0]
     162    current = purple.PurpleSavedstatusGetType(purple.PurpleSavedstatusGetCurrent())
    163163    # Create new transient status and activate it
    164     status = purple.PurpleSavedstatusNew("", current)[0]
     164    status = purple.PurpleSavedstatusNew("", current)
    165165    purple.PurpleSavedstatusSetMessage(status, message)
    166166    purple.PurpleSavedstatusActivate(status)
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!