Change way to set transient for property

This commit is contained in:
Hugo Posnic 2016-12-27 15:27:47 +01:00
parent 685a086d69
commit 42e280b935
2 changed files with 44 additions and 44 deletions

View File

@ -256,7 +256,6 @@ class ManjaroHello():
self.set_autostart(autostart)
elif name == "about":
dialog = self.builder.get_object("aboutdialog")
dialog.set_transient_for(self.window)
dialog.run()
dialog.hide()

View File

@ -2,49 +2,6 @@
<!-- Generated with glade 3.20.0 -->
<interface>
<requires lib="gtk+" version="3.20"/>
<object class="GtkAboutDialog" id="aboutdialog">
<property name="can_focus">False</property>
<property name="title" translatable="yes">About</property>
<property name="type_hint">dialog</property>
<property name="program_name">Manjaro Hello</property>
<property name="version">0.4</property>
<property name="comments" translatable="yes">Welcome screen for Manjaro</property>
<property name="website">https://github.com/Huluti/manjaro-hello</property>
<property name="website_label" translatable="yes">Github</property>
<property name="authors">Hugo Posnic</property>
<property name="translator_credits">Michael Kogan [de]
Bernhard Landauer [de]
Hugo Posnic [fr]
Daniel Napora [pl]
Ilya Ostapenko [ru]</property>
<property name="logo_icon_name"/>
<property name="license_type">gpl-3-0</property>
<child internal-child="vbox">
<object class="GtkBox">
<property name="can_focus">True</property>
<property name="has_focus">True</property>
<property name="orientation">vertical</property>
<property name="spacing">2</property>
<child internal-child="action_area">
<object class="GtkButtonBox">
<property name="can_focus">False</property>
<property name="layout_style">end</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<placeholder/>
</child>
</object>
</child>
<child>
<placeholder/>
</child>
</object>
<object class="GtkImage" id="homeicon">
<property name="visible">True</property>
<property name="can_focus">False</property>
@ -533,4 +490,48 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we
</object>
</child>
</object>
<object class="GtkAboutDialog" id="aboutdialog">
<property name="can_focus">False</property>
<property name="title" translatable="yes">About</property>
<property name="type_hint">dialog</property>
<property name="transient_for">window</property>
<property name="program_name">Manjaro Hello</property>
<property name="version">0.4</property>
<property name="comments" translatable="yes">Welcome screen for Manjaro</property>
<property name="website">https://github.com/Huluti/manjaro-hello</property>
<property name="website_label" translatable="yes">Github</property>
<property name="authors">Hugo Posnic</property>
<property name="translator_credits">Michael Kogan [de]
Bernhard Landauer [de]
Hugo Posnic [fr]
Daniel Napora [pl]
Ilya Ostapenko [ru]</property>
<property name="logo_icon_name"/>
<property name="license_type">gpl-3-0</property>
<child internal-child="vbox">
<object class="GtkBox">
<property name="can_focus">True</property>
<property name="has_focus">True</property>
<property name="orientation">vertical</property>
<property name="spacing">2</property>
<child internal-child="action_area">
<object class="GtkButtonBox">
<property name="can_focus">False</property>
<property name="layout_style">end</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<placeholder/>
</child>
</object>
</child>
<child>
<placeholder/>
</child>
</object>
</interface>