[pitivi: 27/28] Correctly detect the closing of the StartUpWizard window by the user
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 27/28] Correctly detect the closing of the StartUpWizard window by the user
- Date: Thu, 14 Jul 2011 16:25:28 +0000 (UTC)
commit 32799231ae908ff1b367060e22d83b1d00aa6447
Author: Alex BÄluÈ <alexandru balut gmail com>
Date: Tue Jul 12 19:57:35 2011 +0200
Correctly detect the closing of the StartUpWizard window by the user
data/ui/startupwizard.ui | 2 +-
pitivi/ui/startupwizard.py | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/data/ui/startupwizard.ui b/data/ui/startupwizard.ui
index 40127ef..63e00f6 100644
--- a/data/ui/startupwizard.ui
+++ b/data/ui/startupwizard.ui
@@ -12,7 +12,7 @@
<property name="destroy_with_parent">True</property>
<property name="type_hint">normal</property>
<property name="skip_taskbar_hint">True</property>
- <signal name="destroy_event" handler="_dialogCloseCb"/>
+ <signal name="delete_event" handler="_deleteCb"/>
<signal name="key_press_event" handler="_keyPressCb"/>
<child>
<object class="GtkHBox" id="hbox2">
diff --git a/pitivi/ui/startupwizard.py b/pitivi/ui/startupwizard.py
index 50db417..3f2c64d 100644
--- a/pitivi/ui/startupwizard.py
+++ b/pitivi/ui/startupwizard.py
@@ -93,8 +93,8 @@ class StartUpWizard(object):
"""Handle a click on the Help button."""
webbrowser.open(APPMANUALURL)
- def _dialogCloseCb(self, unused_widget):
- """Handle the closing of the dialog."""
+ def _deleteCb(self, unused_widget, event):
+ """Handle a click on the X button of the dialog."""
self.app.projectManager.newBlankProject()
def show(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]