6548: 'Available Gramps Updates for Addons' window not on top

This commit is contained in:
Josip 2014-04-05 02:54:13 +02:00
parent d2066537c7
commit 64a5626712

View File

@ -72,6 +72,7 @@ from ..glade import Glade
from ..listmodel import ListModel, NOSORT, TOGGLE
from gramps.gen.utils.file import get_unicode_path_from_file_chooser
from gramps.gen.const import URL_WIKISTRING, USER_HOME, WIKI_EXTRAPLUGINS_RAWDATA
from gramps.gen.constfunc import win
from gramps.gen.config import config
from ..widgets.progressdialog import (LongOpStatus, ProgressMonitor,
GtkProgressDialog)
@ -1081,6 +1082,9 @@ class UpdateAddons(ManagedWindow):
self.title)
self.window.set_size_request(750, 400)
if win() and Gtk.get_minor_version() < 11:
self.window.set_transient_for(self.window.get_toplevel())
apply_button = glade.get_object('apply')
cancel_button = glade.get_object('cancel')
select_all = glade.get_object('select_all')