* src/TipOfDay.py (TipOfDay.__init__): Set transent property.
* src/gramps_main.py (Gramnps.__init__): Pass itself to TipOfDay; (on_show_plugin_status,build_plugin_menus): Pass itself to PluginStatus. * src/Plugins.py (PluginStatus.__init__): Set transent property. svn: r3963
This commit is contained in:
@@ -347,14 +347,17 @@ class ToolPlugins(PluginDialog):
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
status_up = None
|
||||
parent_window = None
|
||||
|
||||
class PluginStatus:
|
||||
"""Displays a dialog showing the status of loaded plugins"""
|
||||
|
||||
def __init__(self):
|
||||
global status_up
|
||||
def __init__(self,parent_class=None):
|
||||
global status_up, parent_window
|
||||
if status_up:
|
||||
status_up.close(None)
|
||||
if parent_class:
|
||||
parent_window = parent_class.topWindow
|
||||
status_up = self
|
||||
|
||||
import cStringIO
|
||||
@@ -375,6 +378,9 @@ class PluginStatus:
|
||||
'on_plugstat_delete_event' : self.on_delete,
|
||||
})
|
||||
|
||||
if parent_window:
|
||||
self.top.set_transient_for(parent_window)
|
||||
|
||||
info = cStringIO.StringIO()
|
||||
|
||||
if len(PluginMgr.expect_list) + len(PluginMgr.failmsg_list) == 0:
|
||||
|
||||
Reference in New Issue
Block a user