gnome-lirc-properties r38 - in trunk: . gnome_lirc_properties/ui
- From: hasselmm svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-lirc-properties r38 - in trunk: . gnome_lirc_properties/ui
- Date: Mon, 30 Jun 2008 11:34:54 +0000 (UTC)
Author: hasselmm
Date: Mon Jun 30 11:34:54 2008
New Revision: 38
URL: http://svn.gnome.org/viewvc/gnome-lirc-properties?rev=38&view=rev
Log:
Avoid TypeError with no receivers plugged in (#540900).
* gnome_lirc_properties/ui/RemoteControlProperties.py
(RemoteControlProperties._unlock()):
Provide default value for parent_dialog argument.
Modified:
trunk/ChangeLog
trunk/gnome_lirc_properties/ui/RemoteControlProperties.py
Modified: trunk/gnome_lirc_properties/ui/RemoteControlProperties.py
==============================================================================
--- trunk/gnome_lirc_properties/ui/RemoteControlProperties.py (original)
+++ trunk/gnome_lirc_properties/ui/RemoteControlProperties.py Mon Jun 30 11:34:54 2008
@@ -824,7 +824,7 @@
if granted:
self.__combo_receiver_vendor_list.grab_focus()
- def _unlock(self, parent_dialog):
+ def _unlock(self, parent_dialog=None):
'''
Ask PolicyKit to allow the user to use our D-BUS driven backend.
We must ask PolicyKit again later before actually using the backend,
@@ -835,7 +835,7 @@
See http://bugs.freedesktop.org/show_bug.cgi?id=14600
'''
- if(parent_dialog is None):
+ if parent_dialog is None:
parent_dialog = self.__dialog
if parent_dialog == None:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]