~macslow/unity-notifications/fix-1348092

« back to all changes in this revision

Viewing changes to examples/non-shaped-icon-summary-body.py

  • Committer: Mirco Müller
  • Date: 2014-07-21 16:59:41 UTC
  • Revision ID: mirco.mueller@canonical.com-20140721165941-8ucr54t5982stf05
Made secondary icon automatically prepend the theme-type, if its path does not start with a point or slash. Updated examples to make use of proper symbolic icons for the secondary icons.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
                                   "next weekend? Will you join me "
52
52
                                   "and Anna?",
53
53
                                   os.getcwd() + "/assets/avatar2-with-alpha.png")
54
 
        n.set_hint_string ("x-canonical-secondary-icon", os.getcwd() + "/assets/icon_message.png")
 
54
        n.set_hint_string ("x-canonical-secondary-icon", "message")
55
55
        n.set_hint_string ("x-canonical-non-shaped-icon", "true")
56
56
        n.show ()