6548: 'Available Gramps Updates for Addons' window not on top
This commit is contained in:
parent
238cf389b0
commit
e10da882fb
@ -72,6 +72,7 @@ from ..glade import Glade
|
|||||||
from ..listmodel import ListModel, NOSORT, TOGGLE
|
from ..listmodel import ListModel, NOSORT, TOGGLE
|
||||||
from gramps.gen.utils.file import get_unicode_path_from_file_chooser
|
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.const import URL_WIKISTRING, USER_HOME, WIKI_EXTRAPLUGINS_RAWDATA
|
||||||
|
from gramps.gen.constfunc import win
|
||||||
from gramps.gen.config import config
|
from gramps.gen.config import config
|
||||||
from ..widgets.progressdialog import (LongOpStatus, ProgressMonitor,
|
from ..widgets.progressdialog import (LongOpStatus, ProgressMonitor,
|
||||||
GtkProgressDialog)
|
GtkProgressDialog)
|
||||||
@ -1080,6 +1081,9 @@ class UpdateAddons(ManagedWindow):
|
|||||||
self.title)
|
self.title)
|
||||||
self.window.set_size_request(750, 400)
|
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')
|
apply_button = glade.get_object('apply')
|
||||||
cancel_button = glade.get_object('cancel')
|
cancel_button = glade.get_object('cancel')
|
||||||
select_all = glade.get_object('select_all')
|
select_all = glade.get_object('select_all')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user