[pitivi: 2/9] Make the welcome dialog a transient window
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 2/9] Make the welcome dialog a transient window
- Date: Mon, 21 Mar 2011 10:11:48 +0000 (UTC)
commit 7ae2d19af73ef3b8831d9f227980d579fb7ecfb3
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date: Wed Nov 24 11:04:30 2010 -0500
Make the welcome dialog a transient window
pitivi/ui/startupwizard.glade | 3 ++-
pitivi/ui/startupwizard.py | 1 +
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/ui/startupwizard.glade b/pitivi/ui/startupwizard.glade
index 574256e..d922648 100644
--- a/pitivi/ui/startupwizard.glade
+++ b/pitivi/ui/startupwizard.glade
@@ -8,7 +8,8 @@
<property name="title" translatable="yes">Welcome</property>
<property name="resizable">False</property>
<property name="modal">True</property>
- <property name="window_position">center</property>
+ <property name="window_position">center-on-parent</property>
+ <property name="destroy_with_parent">True</property>
<property name="type_hint">dialog</property>
<property name="skip_taskbar_hint">True</property>
<signal name="destroy_event" handler="_quitWizardCb"/>
diff --git a/pitivi/ui/startupwizard.py b/pitivi/ui/startupwizard.py
index 005e45d..b29bddf 100644
--- a/pitivi/ui/startupwizard.py
+++ b/pitivi/ui/startupwizard.py
@@ -30,6 +30,7 @@ class StartUpWizard(object):
self.builder.add_from_file(gladefile)
self.builder.connect_signals(self)
+ self.builder.get_object("window1").set_transient_for(self.app.gui)
chooser = self.builder.get_object("recentchooser2")
# FIXME: gtk creates a combo box with only one item, but there is no
# simple way to hide it.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]