+eT^@sddlmZddlmZddlmZddlmZGdddejZe dkrej Z e j d d ej Zed Zejee jee jejnd S) )absolute_import)Gtk)WebKit)open_urlcs.eZdZfddZddZS)ReleaseNotesViewerWebkitcs7tt|j|j||jd|jdS)Nz$navigation-policy-decision-requested)superr__init__Zload_uriZconnect(_on_navigation_policy_decision_requested)selfZ notes_url) __class__F/usr/lib/python3/dist-packages/DistUpgrade/ReleaseNotesViewerWebkit.pyr $s  z!ReleaseNotesViewerWebkit.__init__cCst|j|jdS)NT)rZget_uriignore)r ZviewZframeZrequestactionZpolicyr r rr *s zAReleaseNotesViewerWebkit._on_navigation_policy_decision_requested)__name__ __module__ __qualname__r r r r )r rr#s r__main__iXizbhttp://archive.ubuntu.com/ubuntu/dists/natty/main/dist-upgrader-all/0.150/ReleaseAnnouncement.htmlN)Z __future__rZ gi.repositoryrrZReleaseNotesViewerrZWebViewrrZWindowwinZset_size_requestZScrolledWindowZscrollrvaddZshow_allmainr r r rs