8128: GtkDialog mapped without a transient parent

partial fix for:
"Change Event Types" and "Fix Capitalization of Family Names" plugins
This commit is contained in:
Josip 2016-04-17 15:03:32 +02:00
parent 6a47c04228
commit 02c239c402
4 changed files with 5 additions and 4 deletions

View File

@ -3,7 +3,7 @@
<interface> <interface>
<requires lib="gtk+" version="3.10"/> <requires lib="gtk+" version="3.10"/>
<object class="GtkWindow" id="changenames"> <object class="GtkWindow" id="changenames">
<property name="visible">True</property> <property name="visible">False</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="default_width">500</property> <property name="default_width">500</property>
<property name="default_height">450</property> <property name="default_height">450</property>

View File

@ -82,7 +82,8 @@ class ChangeNames(tool.BatchTool, ManagedWindow):
if self.fail: if self.fail:
return return
self.progress = ProgressMeter(_('Checking Family Names'),'') self.progress = ProgressMeter(_('Checking Family Names'),'',
parent=uistate.window)
self.progress.set_pass(_('Searching family names'), self.progress.set_pass(_('Searching family names'),
len(self.db.get_surname_list())) len(self.db.get_surname_list()))
self.name_list = [] self.name_list = []

View File

@ -3,7 +3,7 @@
<interface> <interface>
<requires lib="gtk+" version="3.10"/> <requires lib="gtk+" version="3.10"/>
<object class="GtkDialog" id="changetypes"> <object class="GtkDialog" id="changetypes">
<property name="visible">True</property> <property name="visible">False</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="type_hint">dialog</property> <property name="type_hint">dialog</property>
<signal name="delete-event" handler="on_delete_event" swapped="no"/> <signal name="delete-event" handler="on_delete_event" swapped="no"/>

View File

@ -140,7 +140,7 @@ class ChangeTypes(tool.BatchTool, ManagedWindow):
the_type.set(self.auto2.get_child().get_text()) the_type.set(self.auto2.get_child().get_text())
self.options.handler.options_dict['totype'] = the_type.xml_str() self.options.handler.options_dict['totype'] = the_type.xml_str()
self.run_tool(self.window) self.run_tool(self.parent_window)
# Save options # Save options
self.options.handler.save_options() self.options.handler.save_options()