[gnome-lirc-properties] Fix run-time warning
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-lirc-properties] Fix run-time warning
- Date: Tue, 18 May 2010 15:36:03 +0000 (UTC)
commit 5e4bab91ea52f22ad1b9d2f2985c7f706d2a5620
Author: Bastien Nocera <hadess hadess net>
Date: Mon May 17 19:11:33 2010 +0100
Fix run-time warning
Set the custom configuration dialogue's parent by hand, as we
did for the selection dialog.
data/gnome-lirc-properties-custom-config.ui | 1 -
.../ui/RemoteControlProperties.py | 2 ++
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/data/gnome-lirc-properties-custom-config.ui b/data/gnome-lirc-properties-custom-config.ui
index 69b29eb..eed6e7a 100644
--- a/data/gnome-lirc-properties-custom-config.ui
+++ b/data/gnome-lirc-properties-custom-config.ui
@@ -7,7 +7,6 @@
<property name="border_width">5</property>
<property name="window_position">center-on-parent</property>
<property name="type_hint">dialog</property>
- <property name="transient_for">lirc_properties_dialog</property>
<property name="has_separator">False</property>
<signal name="close" handler="_on_close" swapped="no"/>
<signal name="response" handler="_on_response" swapped="no"/>
diff --git a/gnome_lirc_properties/ui/RemoteControlProperties.py b/gnome_lirc_properties/ui/RemoteControlProperties.py
index 8d5bf5f..e064547 100644
--- a/gnome_lirc_properties/ui/RemoteControlProperties.py
+++ b/gnome_lirc_properties/ui/RemoteControlProperties.py
@@ -818,6 +818,8 @@ class RemoteControlProperties(object):
custom_filename = os.path.join(self.__datadir, 'gnome-lirc-properties-custom-config.ui')
custom_builder = gtk.Builder()
custom_builder.add_from_file(custom_filename)
+ dialog = receiver_builder.get_object('custom_configuration')
+ dialog.set_transient_for(self.__dialog)
self.__custom_configuration = CustomConfiguration(custom_builder)
self.__custom_configuration.run(self.selected_receiver,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]