~software-store-developers/software-center/3.0

« back to all changes in this revision

Viewing changes to softwarecenter/view/purchasedialog.py

* softwarecenter/view/purchasedialog.py:
  - make popup window a modal dialog so it works with
    metacity too (LP: #625398)

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
 
87
87
    def _on_create_webview_request(self, view, frame, parent=None):
88
88
        logging.debug("_on_create_webview_request")
89
 
        window = gtk.Window()
90
 
        window.set_transient_for(self)
91
 
        # we need to also set it modal to allow the popup window to be closable;
92
 
        # note that this has the side effect of blocking the purchase dialog until
93
 
        # the popup has been closed (but maybe that's not a bad thing)
94
 
        window.set_modal(True)
95
 
        window.set_size_request(750,400)
96
 
        window.set_title("")
 
89
        popup = gtk.Dialog()
 
90
        popup.set_size_request(750,400)
 
91
        popup.set_title("")
 
92
        popup.set_modal(True)
 
93
        popup.set_transient_for(self)
97
94
        wk = ScrolledWebkitWindow()
98
95
        wk.show()
99
 
        window.add(wk)
100
 
        window.show()
 
96
        popup.vbox.pack_start(wk)
 
97
        popup.show()
101
98
        return wk.webkit
102
99
 
103
100
    def run(self):